glutinum-org / cli

https://glutinum.net/
59 stars 6 forks source link

Don't generate U1 if an union is resolved as a single possible value #87

Closed MangelMaxime closed 6 months ago

MangelMaxime commented 6 months ago

TypeScript documentation:

export type ColorInfo = ColorSupport | false;

translates into

type ColorInfo = ColorSupport

[!NOTE] This is not exactly correct but I don't think we can represent a literal false in F#

Example of npm package using this features: