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

Flatten union in argument #18

Closed rrdelaney closed 7 years ago

rrdelaney commented 7 years ago

A new BuckleScript attribute is coming soon, bs.unwrap. It lets us flatted a union definition for an argument into [String string, Float float] [@bs.unwrap] instead of creating like three helpers like we do right now.