Skip to content

implement string literal type #494

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

Closed
czhang03 opened this issue Oct 31, 2017 · 1 comment
Closed

implement string literal type #494

czhang03 opened this issue Oct 31, 2017 · 1 comment

Comments

@czhang03
Copy link

Despite the recent introduction of Enum to python standard library. there are still tons and tons of packages using fake enum (int or string)

Typescript provides the string literal type, which will be super helpful in this situation.

documentation on string literal type can be found here:
https://www.typescriptlang.org/docs/handbook/advanced-types.html

@ilevkivskyi
Copy link
Member

Duplicate of #478

@ilevkivskyi ilevkivskyi marked this as a duplicate of #478 Oct 31, 2017
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

2 participants