mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 03:52:17 +00:00
TS/JS: Use minvalue from enum if not found (#7888)
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
import { Color } from '../../my-game/example/color.js';
|
||||
import { Test } from '../../my-game/example/test.js';
|
||||
export class Vec3 {
|
||||
constructor() {
|
||||
@@ -83,7 +84,7 @@ export class Vec3 {
|
||||
}
|
||||
}
|
||||
export class Vec3T {
|
||||
constructor(x = 0.0, y = 0.0, z = 0.0, test1 = 0.0, test2 = 0, test3 = null) {
|
||||
constructor(x = 0.0, y = 0.0, z = 0.0, test1 = 0.0, test2 = Color.Red, test3 = null) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
|
||||
@@ -118,7 +118,7 @@ constructor(
|
||||
public y: number = 0.0,
|
||||
public z: number = 0.0,
|
||||
public test1: number = 0.0,
|
||||
public test2: Color = 0,
|
||||
public test2: Color = Color.Red,
|
||||
public test3: TestT|null = null
|
||||
){}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user