-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
List of reserved keywords #2536
Comments
While you could refer to the ES6 spec to figure out a partial list, it might be better to go directly to the code for the current list. Perhaps it would be better to keep a complete list as part of the TS spec (@ahejlsberg) Based on the code, I ripped this out for you:
And if you want to just copy more easily:
|
Also |
@DanielRosenwasser looks like this should have a wiki page |
I tried a few of reserve words mentioned here on the Typescript Playground and didn't encounter any issues. IMO, the keywords should match at least those for ES6. For the later I have a list here https://github.com/crissdev/is-keyword-js/blob/master/index.js which is a list created from MDN site. |
Is there a list of reserved keywords for Typescript somewhere? I have looked around and couldn't find it, even in the language specification.
The text was updated successfully, but these errors were encountered: