You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Sam Felix, Jonas Oppenlaender, Balakrishnan (Balki) Ranganathan, Steven, Hadrien TOMA, Trevor Chunestudy, Humphrey Hills, Dmitry Razumikhin, scf37, Ivan Babak and 12 more
Activity
DanielRosenwasser commentedon Mar 28, 2015
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 (Anders Hejlsberg (@ahejlsberg))
Based on the code, I ripped this out for you:
breakasanycaseimplementsbooleancatchinterfaceconstructorclassletdeclareconstpackagegetcontinueprivatemoduledebuggerprotectedrequiredefaultpublicnumberdeletestaticsetdoyieldstringelsesymbolenumtypeexportfromextendsoffalsefinallyforfunctionifimportininstanceofnewnullreturnsuperswitchthisthrowtruetrytypeofvarvoidwhilewithAnd if you want to just copy more easily:
breakcasecatchclassconstcontinuedebuggerdefaultdeletedoelseenumexportextendsfalsefinallyforfunctionifimportininstanceofnewnullreturnsuperswitchthisthrowtruetrytypeofvarvoidwhilewithasimplementsinterfaceletpackageprivateprotectedpublicstaticyieldanybooleanconstructordeclaregetmodulerequirenumbersetstringsymboltypefromofDanielRosenwasser commentedon May 1, 2015
Also
namespace, maybeasyncandawaiteventually.mhegazy commentedon May 1, 2015
Daniel Rosenwasser (@DanielRosenwasser) looks like this should have a wiki page
crissdev commentedon Nov 6, 2015
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.
zspitz commentedon Aug 2, 2016
chinhodado Cristian Trifan (@crissdev) See also PR to create keywords page in the Typescript Handbook.