f-f / purescript-react-basic-native

Apache License 2.0
60 stars 18 forks source link

cleanup UnionTypes from parent interfaces #3

Closed dwhitney closed 5 years ago

dwhitney commented 5 years ago

For typescript UnionTypes - that can't be simply replaced by string - foreign data is required, and to make sure the name is unique the interface name is concatted with the function name, so you end up with something like AccessibilityPropsAndroidAccessibilityComponentType. The thing is, this particular type type/field comes from a common ancestor interface and we could shorted this to just AccessibilityComponentType everywhere it's used.