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
For unions among object types, many discriminators can be found, implying the existence of manyfold object union types, that are union types of objects, in which there are many attributes used as discriminators. This is not semantically relevant, as discriminated unions do not exist as a prime citizen in TS types, being treated as any other union. This is however pragmatically relevant, guiding the use of such an object union type. The possibility of having an array of discriminators on a union type shall thus be considered in that perspective.
The text was updated successfully, but these errors were encountered:
miroir-framework
changed the title
add carry-on types and heteronomous unions
add carry-on types, heteronomous unions
Jun 18, 2024
miroir-framework
changed the title
add carry-on types, heteronomous unions
add carry-on types, heteronomous unions, and manyfold object union types
Jun 18, 2024
miroir-framework
changed the title
add carry-on types, heteronomous unions, and manyfold object union types
add carry-on types and manyfold object union types
Jun 18, 2024
Add carry-on types, usable (among other cases) with heteronomous unions:
shall result in a TS type (and Zod schema) corresponding to:
For unions among object types, many discriminators can be found, implying the existence of manyfold object union types, that are union types of objects, in which there are many attributes used as discriminators. This is not semantically relevant, as discriminated unions do not exist as a prime citizen in TS types, being treated as any other union. This is however pragmatically relevant, guiding the use of such an object union type. The possibility of having an array of discriminators on a union type shall thus be considered in that perspective.
The text was updated successfully, but these errors were encountered: