Add 'constructor' to reserved words (#13725)

This commit is contained in:
Mustansir Soni 2022-10-18 16:18:31 +09:00 committed by GitHub
parent 31ea76b58b
commit 02c31bfd7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<li>char</li> <li>char</li>
<li>class</li> <li>class</li>
<li>const</li> <li>const</li>
<li>constructor</li>
<li>continue</li> <li>continue</li>
<li>debugger</li> <li>debugger</li>
<li>default</li> <li>default</li>

View File

@ -125,7 +125,7 @@ public class TypeScriptClientCodegen extends DefaultCodegen implements CodegenCo
"varLocalPath", "queryParameters", "headerParams", "formParams", "useFormData", "varLocalDeferred", "varLocalPath", "queryParameters", "headerParams", "formParams", "useFormData", "varLocalDeferred",
"requestOptions", "from", "requestOptions", "from",
// Typescript reserved words // Typescript reserved words
"abstract", "await", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "debugger", "default", "delete", "do", "double", "else", "enum", "export", "extends", "false", "final", "finally", "float", "for", "function", "goto", "if", "implements", "import", "in", "instanceof", "int", "interface", "let", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "super", "switch", "synchronized", "this", "throw", "transient", "true", "try", "typeof", "var", "void", "volatile", "while", "with", "yield")); "abstract", "await", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "constructor", "continue", "debugger", "default", "delete", "do", "double", "else", "enum", "export", "extends", "false", "final", "finally", "float", "for", "function", "goto", "if", "implements", "import", "in", "instanceof", "int", "interface", "let", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "super", "switch", "synchronized", "this", "throw", "transient", "true", "try", "typeof", "var", "void", "volatile", "while", "with", "yield"));
languageSpecificPrimitives = new HashSet<>(Arrays.asList( languageSpecificPrimitives = new HashSet<>(Arrays.asList(
"string", "string",