mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 11:32:40 +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:
@@ -5,7 +5,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
import { Color } from '../../my-game/example/color.js';
|
||||
|
||||
|
||||
export class TestSimpleTableWithEnum {
|
||||
export class TestSimpleTableWithEnum implements flatbuffers.IUnpackableObject<TestSimpleTableWithEnumT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):TestSimpleTableWithEnum {
|
||||
@@ -82,7 +82,7 @@ unpackTo(_o: TestSimpleTableWithEnumT): void {
|
||||
}
|
||||
}
|
||||
|
||||
export class TestSimpleTableWithEnumT {
|
||||
export class TestSimpleTableWithEnumT implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public color: Color = Color.Green
|
||||
){}
|
||||
|
||||
Reference in New Issue
Block a user