mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 12:02: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:
@@ -6,7 +6,7 @@ import { Color } from '../../my-game/example/color.js';
|
||||
import { Test, TestT } from '../../my-game/example/test.js';
|
||||
|
||||
|
||||
export class Vec3 {
|
||||
export class Vec3 implements flatbuffers.IUnpackableObject<Vec3T> {
|
||||
bb: flatbuffers.ByteBuffer|null = null;
|
||||
bb_pos = 0;
|
||||
__init(i:number, bb:flatbuffers.ByteBuffer):Vec3 {
|
||||
@@ -112,7 +112,7 @@ unpackTo(_o: Vec3T): void {
|
||||
}
|
||||
}
|
||||
|
||||
export class Vec3T {
|
||||
export class Vec3T implements flatbuffers.IGeneratedObject {
|
||||
constructor(
|
||||
public x: number = 0.0,
|
||||
public y: number = 0.0,
|
||||
|
||||
Reference in New Issue
Block a user