mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 20:31:23 +00:00
Generating the most strict TS code possible (#4286)
* Eclipse ignore * TypeScript support * Prefixing enums * Test results * Merged JS and TS generators * Fixed AppVeyor build problems * Fixed more AppVeyor build problems * Fixed more AppVeyor build problems * Changed TS flag to options struct * Storing options by value * Removed unneeded const * Re-export support for unions * Uint support * Casting bools to numbers for mutation * TS shell tests * Reverted generates js test file to original version * Backing up js tests and properly generating test data * Not importing flatbuffers for TS test generation * Not overwriting generated js for tests * AppVeyor test fixes * Generating the most strict TS code possible
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
8b92122f33
commit
86777bd66b
@@ -18,6 +18,6 @@ pushd "$(dirname $0)" >/dev/null
|
||||
../flatc --ts --no-fb-import --gen-mutable -o ts monster_test.fbs
|
||||
../flatc -b monster_test.fbs unicode_test.json
|
||||
npm install @types/flatbuffers
|
||||
tsc ts/monster_test_generated.ts
|
||||
tsc --strict --noUnusedParameters --noUnusedLocals --noImplicitReturns --strictNullChecks ts/monster_test_generated.ts
|
||||
npm uninstall @types/flatbuffers
|
||||
node JavaScriptTest ./ts/monster_test_generated
|
||||
|
||||
Reference in New Issue
Block a user