Austin Chick
b8e3d215b8
[TS] Fix relative import paths of generated TypeScript code ( #8880 )
...
* Refactor logic that generates import paths in AddImport
* Add new tests to validate relative import path fix
* Generate goldens
* Generate example code
* Format TS generator file
* Revert "Format TS generator file"
This reverts commit 0f0b24aee9 .
* Fix merge conflicts
---------
Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com >
2026-02-17 10:22:32 +01:00
Jason
067bfdbde9
Update ts codegen ( #8421 )
...
Makes the return type of `static getFullyQualifiedName()` be a string literal instead of just the string type
Update tests
Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com >
2025-08-17 20:19:08 -07:00
jviel-beta
f625ff3330
[TS] Allows object API to set 0 for a null-default scalar. ( #7864 )
...
* Fixes bug where null default allows 0 as a value.
* Undoes one bit, adds null type allowance to addField<> default.
* Undoes IDE auto-format of imports.
* Adds generated changes after scripts/generate_code.py
* Removes unused symbol.
* Revert "Removes unused symbol."
This reverts commit 9cece17325 .
---------
Co-authored-by: Derek Bailey <derekbailey@google.com >
2023-09-12 19:58:55 +02:00
OptoCloud
48da238920
Make eslint less pedantic ( #8012 )
...
* Disable eslint spam
* Generate TS example files
2023-07-10 15:48:16 +00:00
James Kuszmaul
e43a80c322
[TS] Fix getFullyQualifiedName codegen for typescript ( #7730 )
...
#7451 caused getFullyQualifiedName to return a name with underscores,
not periods. Because the fully qualified name is a property of
FlatBuffers, not the language being codegen'd for, it should use
periods. Fixes #7564 .
Co-authored-by: Derek Bailey <derekbailey@google.com >
2022-12-22 20:59:40 +00:00
Björn Harrtell
4fca4dc60c
[TS/JS] Move TS tests to dedicated folder and deps upgrade ( #7508 )
...
* Move TS tests to dedicated folder and deps upgrade
* Attempt to fix generate_code
* Fix dir on CI
* Add js extension
* Fix missing extension
* Harmonize with test gen
* Unexplained code gen change
* Restore yarn.lock
* Naive attempt to fix bazel stuff
* Pin @bazel/typescript to 5.2.0
* Attempt to fix bazel
* More tweak
* Upgrade deps
* Tweak?
* Fix path
* Fix test package
Co-authored-by: Derek Bailey <derekbailey@google.com >
2022-09-12 20:03:23 -07:00