mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 08:32:40 +00:00
[TS] Enum value default null (#8619)
* [TS] Enum value default null * Re-gen
This commit is contained in:
@@ -32,7 +32,7 @@ export class Movie {
|
||||
}
|
||||
charactersType(index) {
|
||||
const offset = this.bb.__offset(this.bb_pos, 8);
|
||||
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;
|
||||
}
|
||||
charactersTypeLength() {
|
||||
const offset = this.bb.__offset(this.bb_pos, 8);
|
||||
|
||||
@@ -44,7 +44,7 @@ mainCharacter<T extends flatbuffers.Table>(obj:any|string):any|string|null {
|
||||
|
||||
charactersType(index: number):Character|null {
|
||||
const offset = this.bb!.__offset(this.bb_pos, 8);
|
||||
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;
|
||||
}
|
||||
|
||||
charactersTypeLength():number {
|
||||
|
||||
Reference in New Issue
Block a user