Skip to content

Commit a6a0a38

Browse files
committed
Got a little overzealous with the reserved keywords for TypeScript. Only adding constructor for now.
1 parent 999a83c commit a6a0a38

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/WebApiToTypeScript/Types/TypeService.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -308,19 +308,7 @@ private void LoadReservedWords()
308308
{
309309
ReservedWords = new List<string>
310310
{
311-
"break", "case", "catch", "class", "const",
312-
"continue", "debugger", "default", "delete", "do",
313-
"else", "enum", "export", "extends", "false",
314-
"finally", "for", "function", "if", "import",
315-
"in", "instanceof", "new", "null", "return",
316-
"super", "switch", "this", "throw", "true",
317-
"try", "typeof", "var", "void", "while",
318-
"with", "as", "implements", "interface", "let",
319-
"package", "private", "protected", "public", "static",
320-
"yield", "any", "boolean", "constructor", "declare",
321-
"get", "module", "require", "number", "set",
322-
"string", "symbol", "type", "from", "of",
323-
"namespace", "async", "await"
311+
"constructor"
324312
};
325313
}
326314

0 commit comments

Comments
 (0)