mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 17:02:02 +00:00
[TS] Enum value default null (#8619)
* [TS] Enum value default null * Re-gen
This commit is contained in:
@@ -29,7 +29,7 @@ export class D {
|
||||
}
|
||||
testVectorOfUnionType(index) {
|
||||
const offset = this.bb.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb.readInt32(this.bb.__vector(this.bb_pos + offset) + index * 4) : 0;
|
||||
return offset ? this.bb.readInt32(this.bb.__vector(this.bb_pos + offset) + index * 4) : null;
|
||||
}
|
||||
testVectorOfUnionTypeLength() {
|
||||
const offset = this.bb.__offset(this.bb_pos, 8);
|
||||
|
||||
@@ -40,7 +40,7 @@ testUnion<T extends flatbuffers.Table>(obj:any):any|null {
|
||||
|
||||
testVectorOfUnionType(index: number):ABC|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
return offset ? this.bb!.readInt32(this.bb!.__vector(this.bb_pos + offset) + index * 4) : 0;
|
||||
return offset ? this.bb!.readInt32(this.bb!.__vector(this.bb_pos + offset) + index * 4) : null;
|
||||
}
|
||||
|
||||
testVectorOfUnionTypeLength():number {
|
||||
|
||||
Reference in New Issue
Block a user