From e39dbf64c4bce9966b1da96491194c02613d03af Mon Sep 17 00:00:00 2001 From: Austin Chick <219010036+auschi-shieldai@users.noreply.github.com> Date: Mon, 22 Dec 2025 08:31:40 -0600 Subject: [PATCH] Generate example code --- .../my-game/example/any-ambiguous-aliases.ts | 2 +- .../ts/my-game/example/any-unique-aliases.ts | 6 ++--- tests/ts/my-game/example/any.ts | 6 ++--- tests/ts/my-game/example/monster.ts | 26 +++++++++---------- .../example/struct-of-structs-of-structs.ts | 2 +- tests/ts/my-game/example/struct-of-structs.ts | 4 +-- .../example/test-simple-table-with-enum.ts | 2 +- tests/ts/my-game/example/vec3.ts | 4 +-- tests/ts/optional-scalars/scalar-stuff.ts | 2 +- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/tests/ts/my-game/example/any-ambiguous-aliases.ts b/tests/ts/my-game/example/any-ambiguous-aliases.ts index 8e7a3a3b6..7510e3056 100644 --- a/tests/ts/my-game/example/any-ambiguous-aliases.ts +++ b/tests/ts/my-game/example/any-ambiguous-aliases.ts @@ -2,7 +2,7 @@ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ -import { Monster, MonsterT } from '../../my-game/example/monster.js'; +import { Monster, MonsterT } from './monster.js'; export enum AnyAmbiguousAliases { diff --git a/tests/ts/my-game/example/any-unique-aliases.ts b/tests/ts/my-game/example/any-unique-aliases.ts index ae85ea00b..c0b7e15c7 100644 --- a/tests/ts/my-game/example/any-unique-aliases.ts +++ b/tests/ts/my-game/example/any-unique-aliases.ts @@ -2,9 +2,9 @@ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ -import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../../my-game/example2/monster.js'; -import { Monster, MonsterT } from '../../my-game/example/monster.js'; -import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from '../../my-game/example/test-simple-table-with-enum.js'; +import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../example2/monster.js'; +import { Monster, MonsterT } from './monster.js'; +import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './test-simple-table-with-enum.js'; export enum AnyUniqueAliases { diff --git a/tests/ts/my-game/example/any.ts b/tests/ts/my-game/example/any.ts index 5e484fa0a..ea886c787 100644 --- a/tests/ts/my-game/example/any.ts +++ b/tests/ts/my-game/example/any.ts @@ -2,9 +2,9 @@ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ -import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../../my-game/example2/monster.js'; -import { Monster, MonsterT } from '../../my-game/example/monster.js'; -import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from '../../my-game/example/test-simple-table-with-enum.js'; +import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../example2/monster.js'; +import { Monster, MonsterT } from './monster.js'; +import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './test-simple-table-with-enum.js'; export enum Any { diff --git a/tests/ts/my-game/example/monster.ts b/tests/ts/my-game/example/monster.ts index bd64dd121..04ca1ac73 100644 --- a/tests/ts/my-game/example/monster.ts +++ b/tests/ts/my-game/example/monster.ts @@ -4,19 +4,19 @@ import * as flatbuffers from 'flatbuffers'; -import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../../my-game/example2/monster.js'; -import { Ability, AbilityT } from '../../my-game/example/ability.js'; -import { Any, unionToAny, unionListToAny } from '../../my-game/example/any.js'; -import { AnyAmbiguousAliases, unionToAnyAmbiguousAliases, unionListToAnyAmbiguousAliases } from '../../my-game/example/any-ambiguous-aliases.js'; -import { AnyUniqueAliases, unionToAnyUniqueAliases, unionListToAnyUniqueAliases } from '../../my-game/example/any-unique-aliases.js'; -import { Color } from '../../my-game/example/color.js'; -import { Race } from '../../my-game/example/race.js'; -import { Referrable, ReferrableT } from '../../my-game/example/referrable.js'; -import { Stat, StatT } from '../../my-game/example/stat.js'; -import { Test, TestT } from '../../my-game/example/test.js'; -import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from '../../my-game/example/test-simple-table-with-enum.js'; -import { Vec3, Vec3T } from '../../my-game/example/vec3.js'; -import { InParentNamespace, InParentNamespaceT } from '../../my-game/in-parent-namespace.js'; +import { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from '../example2/monster.js'; +import { Ability, AbilityT } from './ability.js'; +import { Any, unionToAny, unionListToAny } from './any.js'; +import { AnyAmbiguousAliases, unionToAnyAmbiguousAliases, unionListToAnyAmbiguousAliases } from './any-ambiguous-aliases.js'; +import { AnyUniqueAliases, unionToAnyUniqueAliases, unionListToAnyUniqueAliases } from './any-unique-aliases.js'; +import { Color } from './color.js'; +import { Race } from './race.js'; +import { Referrable, ReferrableT } from './referrable.js'; +import { Stat, StatT } from './stat.js'; +import { Test, TestT } from './test.js'; +import { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './test-simple-table-with-enum.js'; +import { Vec3, Vec3T } from './vec3.js'; +import { InParentNamespace, InParentNamespaceT } from '../in-parent-namespace.js'; /** diff --git a/tests/ts/my-game/example/struct-of-structs-of-structs.ts b/tests/ts/my-game/example/struct-of-structs-of-structs.ts index af3519a01..f47d42d24 100644 --- a/tests/ts/my-game/example/struct-of-structs-of-structs.ts +++ b/tests/ts/my-game/example/struct-of-structs-of-structs.ts @@ -4,7 +4,7 @@ import * as flatbuffers from 'flatbuffers'; -import { StructOfStructs, StructOfStructsT } from '../../my-game/example/struct-of-structs.js'; +import { StructOfStructs, StructOfStructsT } from './struct-of-structs.js'; export class StructOfStructsOfStructs implements flatbuffers.IUnpackableObject { diff --git a/tests/ts/my-game/example/struct-of-structs.ts b/tests/ts/my-game/example/struct-of-structs.ts index 2f4a36748..c3ff69da3 100644 --- a/tests/ts/my-game/example/struct-of-structs.ts +++ b/tests/ts/my-game/example/struct-of-structs.ts @@ -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 { diff --git a/tests/ts/my-game/example/test-simple-table-with-enum.ts b/tests/ts/my-game/example/test-simple-table-with-enum.ts index 3e8b4c03f..ac9d7add2 100644 --- a/tests/ts/my-game/example/test-simple-table-with-enum.ts +++ b/tests/ts/my-game/example/test-simple-table-with-enum.ts @@ -4,7 +4,7 @@ import * as flatbuffers from 'flatbuffers'; -import { Color } from '../../my-game/example/color.js'; +import { Color } from './color.js'; export class TestSimpleTableWithEnum implements flatbuffers.IUnpackableObject { diff --git a/tests/ts/my-game/example/vec3.ts b/tests/ts/my-game/example/vec3.ts index a2092d700..a5fd359fe 100644 --- a/tests/ts/my-game/example/vec3.ts +++ b/tests/ts/my-game/example/vec3.ts @@ -4,8 +4,8 @@ import * as flatbuffers from 'flatbuffers'; -import { Color } from '../../my-game/example/color.js'; -import { Test, TestT } from '../../my-game/example/test.js'; +import { Color } from './color.js'; +import { Test, TestT } from './test.js'; export class Vec3 implements flatbuffers.IUnpackableObject { diff --git a/tests/ts/optional-scalars/scalar-stuff.ts b/tests/ts/optional-scalars/scalar-stuff.ts index 7f6fdcaae..69961af26 100644 --- a/tests/ts/optional-scalars/scalar-stuff.ts +++ b/tests/ts/optional-scalars/scalar-stuff.ts @@ -4,7 +4,7 @@ import * as flatbuffers from 'flatbuffers'; -import { OptionalByte } from '../optional-scalars/optional-byte.js'; +import { OptionalByte } from './optional-byte.js'; export class ScalarStuff {