mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-24 11:01:47 +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:
@@ -604,7 +604,7 @@ export class Builder {
|
|||||||
* @returns list of offsets of each non null object
|
* @returns list of offsets of each non null object
|
||||||
*/
|
*/
|
||||||
createObjectOffsetList(list: string[]): Offset[] {
|
createObjectOffsetList(list: string[]): Offset[] {
|
||||||
const ret = [];
|
const ret: number[] = [];
|
||||||
|
|
||||||
for(let i = 0; i < list.length; ++i) {
|
for(let i = 0; i < list.length; ++i) {
|
||||||
const val = list[i];
|
const val = list[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user