typescript-string-enums icon indicating copy to clipboard operation
typescript-string-enums copied to clipboard

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

Open seansfkelley opened this issue 8 years ago • 0 comments

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 https://github.com/Microsoft/TypeScript/issues/16553, as I think it's a bug in the compiler. Perhaps a caveat in the readme is in order?

seansfkelley avatar Jun 15 '17 14:06 seansfkelley