-
Notifications
You must be signed in to change notification settings - Fork 78
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
Typescript Enums #60
base: master
Are you sure you want to change the base?
Typescript Enums #60
Conversation
Added a typescript unique feature: Enums
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to also cover const enum
s before we merge.
You could also mention that this is one of few the places TypeScript deviates from ECMAScript specification, in that this is not just a type annotation, but this affects the emit too (simply stripping out the types isn't enough for TypeScript enum
s).
@niieani I'm not sure, "const enums" should be mentions, because time after time the TS team against using it in every issue arise about them |
There is missing about enums:
|
Agree const enum are not something worth covering. Its a bundle size optimization. I'll add the info about the additional emitted code. |
Added a typescript unique feature: Enums
Closes #57