Managing Discriminated Union Schemas in Typescript
Is there any default constructor for discriminated union schema? If not is there a good pattern for managing them?
I want to construct specific cases, and am currently using a namespace to hold the variants, and the union. is there anything better?
I want to construct specific cases, and am currently using a namespace to hold the variants, and the union. is there anything better?
