Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string literal types from typescript-string-enums are not as safe/expressive as "regular" string literal types #25

Open
seansfkelley opened this issue Jun 15, 2017 · 0 comments

Comments

@seansfkelley
Copy link

seansfkelley commented Jun 15, 2017

I found an issue with your usage of mapped types to output a string literal union type whereby it cannot be used safely in as many places as a "regular" string literal union type. I don't think it's the fault of this library, but it's a pain to debug so I'm filing this issue to bring it your attention. I've filed more details at microsoft/TypeScript#16553, as I think it's a bug in the compiler. Perhaps a caveat in the readme is in order?

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

No branches or pull requests

1 participant