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

Union type unwrap #23

Closed rrdelaney closed 7 years ago

rrdelaney commented 7 years ago

BuckleScript introduced [@bs.unwrap] to extract a tagged type union to it's JS value. If a union type is declared directly in the args, we should use this to generate simpler code.