-
Notifications
You must be signed in to change notification settings - Fork 0
Handle ambiguous object unions #178
Copy link
Copy link
Open
Labels
Aspect: Type CheckerType checker aspect. Anything related to the module checked by the type system.Type checker aspect. Anything related to the module checked by the type system.Kind: Feature 🎉A new product featureA new product featureProp: DXDeveloper experience improvementsDeveloper experience improvements
Description
Activity
Metadata
Metadata
Assignees
Labels
Aspect: Type CheckerType checker aspect. Anything related to the module checked by the type system.Type checker aspect. Anything related to the module checked by the type system.Kind: Feature 🎉A new product featureA new product featureProp: DXDeveloper experience improvementsDeveloper experience improvements
This kind of union would trip parsers like Serde. TypeScript would ignore it as they are structurally equal, but for the rest, we need to find a solution.
Ideally, the type checker must detect ambiguous unions and produce a type error.