mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 09:41:38 +00:00
[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>
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
import { Ability, AbilityT } from '../../my-game/example/ability.js';
|
||||
import { Test, TestT } from '../../my-game/example/test.js';
|
||||
import { Ability, AbilityT } from './ability.js';
|
||||
import { Test, TestT } from './test.js';
|
||||
|
||||
|
||||
export class StructOfStructs implements flatbuffers.IUnpackableObject<StructOfStructsT> {
|
||||
|
||||
Reference in New Issue
Block a user