mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 10:52:00 +00:00
[TS] Enum value default null (#8619)
* [TS] Enum value default null * Re-gen
This commit is contained in:
@@ -457,7 +457,7 @@ export class Monster {
|
||||
}
|
||||
vectorOfEnums(index) {
|
||||
const offset = this.bb.__offset(this.bb_pos, 98);
|
||||
return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : 0;
|
||||
return offset ? this.bb.readUint8(this.bb.__vector(this.bb_pos + offset) + index) : null;
|
||||
}
|
||||
vectorOfEnumsLength() {
|
||||
const offset = this.bb.__offset(this.bb_pos, 98);
|
||||
|
||||
@@ -594,7 +594,7 @@ anyAmbiguous<T extends flatbuffers.Table>(obj:any):any|null {
|
||||
|
||||
vectorOfEnums(index: number):Color|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 98);
|
||||
return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : 0;
|
||||
return offset ? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index) : null;
|
||||
}
|
||||
|
||||
vectorOfEnumsLength():number {
|
||||
|
||||
Reference in New Issue
Block a user