Effect CommunityEC
Effect Community5mo ago
8 replies
Patrick Roza

Understanding Object Inclusion and Class Instances in TypeScript

why does c include { b: 'c' }: Context.TagUnify<Context.TagClass<"a", "b", "c"> & { b: 'c'; }>
but e is not typeof d that has also b: 'c': Context.TagUnify<Context.TagClass<"a", "b", "c">>
https://effect.website/play/#9640d3894817
Was this page helpful?