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:
James Kuszmaul
2020-11-16 10:49:53 -08:00
committed by GitHub
parent 537212afee
commit faeb04fbe1

View File

@@ -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();
}
}
}