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:
parent
537212afee
commit
faeb04fbe1
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue