Skip to content

Conversation

@kylebshr
Copy link

Fixes #53

| TSTypeAlternatives { typeName :: String
, typeGenericVariables :: [String]
, alternativeTypes :: [String]
, alternativeTypes :: [(String, Maybe String)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! My only reservation about this is how this makes the type kind of messy and adds noise to all the tests where you have to specify Nothing in this tuple.

How about turning this into a proper type, say data TSAlternativeType, which contains both the type name and the haddocks docs as named fields? Then, we should be able to define a fromString instance that just leaves the haddocks empty, so we can leave the tests unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@no-emit-typescript does not work for nullary constructors

2 participants