v2.2.0
Fix for TypeScript 3.4 when using arrays for values:
const Foo = unionize({ array: ofType<boolean[]>() }, { value: 'value' });
// no type error in unionize@<=2.1.2 under [email protected]:
Foo.array('whoops');
Fix for TypeScript 3.4 when using arrays for values:
const Foo = unionize({ array: ofType<boolean[]>() }, { value: 'value' });
// no type error in unionize@<=2.1.2 under [email protected]:
Foo.array('whoops');