v2.1.0
Allow including tags in variant types, so that you can name your variants with interfaces:
interface Foo {
tag: 'foo';
x: number;
}
interface Bar {
tag: 'bar';
y: boolean;
const T = unionize({
foo: ofType<Foo>(),
bar: ofType<Bar>(),
});