mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 12:43:24 +00:00
[JS] Add getFullyQualifiedName() (#6119)
This optionally generates a static `getFullyQualifiedName()` function to get the fully-qualified name of a type in JavaScript and TypeScript in a similar fashion to the C++ codegen.
This commit is contained in:
@@ -20,12 +20,12 @@ npm install @types/flatbuffers
|
||||
|
||||
export FB_TS_TEST="TRUE"
|
||||
|
||||
../flatc --ts --no-fb-import --gen-mutable --gen-object-api -o ts -I include_test monster_test.fbs
|
||||
../flatc --ts --no-fb-import --gen-name-strings --gen-mutable --gen-object-api -o ts -I include_test monster_test.fbs
|
||||
../flatc --gen-object-api -b -I include_test monster_test.fbs unicode_test.json
|
||||
tsc --strict --noUnusedParameters --noUnusedLocals --noImplicitReturns --strictNullChecks ts/monster_test_generated.ts
|
||||
node JavaScriptTest ./ts/monster_test_generated
|
||||
|
||||
../flatc --ts --no-fb-import --gen-object-api -o ts union_vector/union_vector.fbs
|
||||
../flatc --ts --gen-name-strings --no-fb-import --gen-object-api -o ts union_vector/union_vector.fbs
|
||||
tsc --strict --noUnusedParameters --noUnusedLocals --noImplicitReturns --strictNullChecks ts/union_vector_generated.ts
|
||||
node JavaScriptUnionVectorTest ./ts/union_vector_generated
|
||||
|
||||
|
||||
Reference in New Issue
Block a user