Skip to content

Commit 905c1cf

Browse files
bjornharrtellle-michael
authored andcommitted
TS: Add missing generate files (google#8075)
Co-authored-by: Michael Le <[email protected]>
1 parent 9f13a17 commit 905c1cf

File tree

115 files changed

+1400
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+1400
-188
lines changed

tests/ts/arrays_test_complex/arrays_test_complex_generated.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ var ArrayStructT = class {
387387

388388
// arrays_test_complex/my-game/example/array-table.js
389389
var flatbuffers = __toESM(require("flatbuffers"), 1);
390-
var ArrayTable = class {
390+
var ArrayTable = class _ArrayTable {
391391
constructor() {
392392
this.bb = null;
393393
this.bb_pos = 0;
@@ -398,11 +398,11 @@ var ArrayTable = class {
398398
return this;
399399
}
400400
static getRootAsArrayTable(bb, obj) {
401-
return (obj || new ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
401+
return (obj || new _ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
402402
}
403403
static getSizePrefixedRootAsArrayTable(bb, obj) {
404404
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
405-
return (obj || new ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
405+
return (obj || new _ArrayTable()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
406406
}
407407
static bufferHasIdentifier(bb) {
408408
return bb.__has_identifier("RHUB");

tests/ts/arrays_test_complex/my-game/example.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
2+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
23
export { ArrayStruct, ArrayStructT } from './example/array-struct.js';
34
export { ArrayTable, ArrayTableT } from './example/array-table.js';
45
export { InnerStruct, InnerStructT } from './example/inner-struct.js';

tests/ts/arrays_test_complex/my-game/example.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
export { ArrayStruct, ArrayStructT } from './example/array-struct.js';
46
export { ArrayTable, ArrayTableT } from './example/array-table.js';
57
export { InnerStruct, InnerStructT } from './example/inner-struct.js';

tests/ts/arrays_test_complex/my-game/example/array-struct.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { NestedStruct, NestedStructT } from '../../my-game/example/nested-struct.js';

tests/ts/arrays_test_complex/my-game/example/array-table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
2+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
23
import * as flatbuffers from 'flatbuffers';
34
import { ArrayStruct } from '../../my-game/example/array-struct.js';
45
export class ArrayTable {

tests/ts/arrays_test_complex/my-game/example/array-table.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { ArrayStruct, ArrayStructT } from '../../my-game/example/array-struct.js';

tests/ts/arrays_test_complex/my-game/example/inner-struct.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57

tests/ts/arrays_test_complex/my-game/example/nested-struct.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { OuterStruct, OuterStructT } from '../../my-game/example/outer-struct.js';

tests/ts/arrays_test_complex/my-game/example/outer-struct.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
22

3+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
4+
35
import * as flatbuffers from 'flatbuffers';
46

57
import { InnerStruct, InnerStructT } from '../../my-game/example/inner-struct.js';
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// automatically generated by the FlatBuffers compiler, do not modify
2+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
23
export var TestEnum;
34
(function (TestEnum) {
45
TestEnum[TestEnum["A"] = 0] = "A";
56
TestEnum[TestEnum["B"] = 1] = "B";
67
TestEnum[TestEnum["C"] = 2] = "C";
7-
})(TestEnum = TestEnum || (TestEnum = {}));
8+
})(TestEnum || (TestEnum = {}));

0 commit comments

Comments
 (0)