[TS] Escape keywords in typescript object names (#7137)

* Add Object to the list of reserved keywords.
* Properly escape keywords in type names.
* Properly escape keywords in enum names.
* Properly escape keywords in enum field names.
This commit is contained in:
James Kuszmaul
2022-03-05 09:39:59 -08:00
committed by GitHub
parent 9ed1323044
commit 8db2fef3f7
4 changed files with 47 additions and 22 deletions

View File

@@ -14,7 +14,9 @@
},
"include": [
"monster_test.ts",
"typescript_keywords.ts",
"my-game/**/*.ts",
"typescript/**/*.ts",
"optional_scalars/**/*.ts",
"namespace_test/**/*.ts",
"union_vector/**/*.ts"