mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue