mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 20:31:23 +00:00
[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:
@@ -25,6 +25,7 @@ if [ -x ../flatc ]; then
|
||||
../flatc --gen-object-api -b -I include_test monster_test.fbs unicode_test.json
|
||||
../flatc --ts --gen-name-strings --gen-mutable --gen-object-api -o union_vector union_vector/union_vector.fbs
|
||||
../flatc --ts --gen-name-strings optional_scalars.fbs
|
||||
../flatc --ts --gen-name-strings --gen-object-api --gen-mutable typescript_keywords.fbs
|
||||
fi
|
||||
tsc
|
||||
node -r esm JavaScriptTest
|
||||
|
||||
Reference in New Issue
Block a user