- Published on
Complete List of TypeScript Keywords
- Authors

- Name
- Yinhuan Yuan
Introduction
TypeScript includes all JavaScript keywords and adds several of its own. Here's a comprehensive list of keywords in TypeScript:
JavaScript Keywords (also used in TypeScript)
breakcasecatchclassconstcontinuedebuggerdefaultdeletedoelseenumexportextendsfalsefinallyforfunctionifimportininstanceofnewnullreturnsuperswitchthisthrowtruetrytypeofvarvoidwhilewithasimplementsinterfaceletpackageprivateprotectedpublicstaticyield
TypeScript-Specific Keywords
abstractanyasyncawaitconstructordeclarefromgetismodulenamespaceneverrequiresettypeunknownreadonly
Contextual Keywords
These words have special meaning in certain contexts but are not reserved words:
of(used in for...of loops)asserts(used in type assertions)infer(used in conditional types)keyof(used to get the union of keys from a type)
Types
While not strictly keywords, these are built-in types in TypeScript:
booleannumberstringsymbolobjectundefinedbigint
Note: Some keywords like any, unknown, never, etc., are both types and keywords in TypeScript