unsplash / sum-types

Safe, ergonomic, non-generic sum types in TypeScript.
https://unsplash.github.io/sum-types/
MIT License
42 stars 2 forks source link

Some more things need exporting #16

Closed samhh closed 3 years ago

samhh commented 3 years ago

Specifically not exporting Sum causes this to happen if you don't destructure the values out of create:

export const Example = create<Member<'a'>>()
Exported variable 'Example' has or is using name 'Sum' from external module "<path>/sum-types/src/index" but cannot be named.