rrdelaney / ReasonablyTyped

:diamond_shape_with_a_dot_inside: Converts Flow and TypeScript definitions to Reason interfaces
https://rrdelaney.github.io/ReasonablyTyped/
MIT License
518 stars 24 forks source link

String literal union #17

Closed rrdelaney closed 7 years ago

rrdelaney commented 7 years ago

Types of the form 'one' | 'two' | 'three' are pretty common, and have special treatment in BuckleScript with bs.as string. We should detect these, flatted when the happen in an alias or some other way, and then render them as such.