rescript-association / genType

Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.
https://rescript-lang.org/docs/gentype/latest/introduction
MIT License
757 stars 44 forks source link

Add basic support for inherited types in poly variant. #578

Closed cristianoc closed 3 years ago

cristianoc commented 3 years ago

Basic support for inherited type definitions type color = [red | blue] in polymorphic variants.

No support for conversion at the moment, which would need to unfold the definitions of all the types involved.

Fixes https://github.com/rescript-association/genType/issues/577