mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 16:58:07 +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:
@@ -4,7 +4,7 @@ import * as flatbuffers from 'flatbuffers';
|
||||
|
||||
|
||||
|
||||
export class Monster {
|
||||
export class Monster implements flatbuffers.IUnpackableObject<MonsterT> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Monster {
|
||||
@@ -56,7 +56,7 @@ unpack(): MonsterT {
|
||||
unpackTo(_o: MonsterT): void {}
|
||||
}
|
||||
|
||||
export class MonsterT {
|
||||
export class MonsterT implements flatbuffers.IGeneratedObject {
|
||||
constructor(){}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user