forked from BigfootDev/flatbuffers
Add type annotation to unspecified array (#6264)
The lack of any type on the `ret` variable was causing our typescript compiler to complain.
This commit is contained in:
@@ -604,7 +604,7 @@ export class Builder {
|
||||
* @returns list of offsets of each non null object
|
||||
*/
|
||||
createObjectOffsetList(list: string[]): Offset[] {
|
||||
const ret = [];
|
||||
const ret: number[] = [];
|
||||
|
||||
for(let i = 0; i < list.length; ++i) {
|
||||
const val = list[i];
|
||||
@@ -625,4 +625,4 @@ export class Builder {
|
||||
this.createObjectOffsetList(list);
|
||||
return this.endVector();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user