You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constA=t.type({type: t.literal('A')})constB=t.type({type: t.literal('B')})constC=t.type({type: t.literal('C')})constSubUnion=t.union([A,B])constT=t.taggedUnion('type',[SubUnion,C])console.log(T.decode({type: 'B'}).isRight())// false, should be true
constA=t.type({type: t.literal('A')})constB=t.type({type: t.literal('B')})constC=t.type({type: t.literal('C')})constSubTaggedUnion=t.taggedUnion('type',[A,B])constT=t.taggedUnion('type',[SubTaggedUnion,C])console.log(T.decode({type: 'B'}).isRight())// false, should be true
The text was updated successfully, but these errors were encountered:
…ly, closes#257
Experimental: optimize union with the same algorithm used in taggedUnion
Also removed the following useless internal APIs
- isTagged
- findTagged
- getTagValue
…ly, closes#257
Experimental: optimize union with the same algorithm used in taggedUnion
Also removed the following useless internal APIs
- isTagged
- findTagged
- getTagValue
Repro
The text was updated successfully, but these errors were encountered: