mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 02:13:57 +00:00
[TS] Make strict compliant and improve typings (#7549)
* [TS] Make strict compliant and improve typings * clang-format * Code gen harmonize Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import { Ability, AbilityT } from '../../my-game/example/ability.js';
|
||||
import { Test, TestT } from '../../my-game/example/test.js';
|
||||
|
||||
|
||||
export class StructOfStructs {
|
||||
export class StructOfStructs implements flatbuffers.IUnpackableObject<StructOfStructsT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):StructOfStructs {
|
||||
@@ -67,7 +67,7 @@ unpackTo(_o: StructOfStructsT): void {
|
||||
}
|
||||
}
|
||||
|
||||
export class StructOfStructsT {
|
||||
export class StructOfStructsT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public a: AbilityT|null = null,
|
||||
public b: TestT|null = null,
|
||||
|
||||
Reference in New Issue
Block a user