diff options
author | James Kuszmaul <jkuszmaul@users.noreply.github.com> | 2020-11-16 10:49:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 10:49:53 -0800 |
commit | faeb04fbe1e92faff443966e362b4b4313dde293 (patch) | |
tree | 6baaf1029e93062906887eb3c047cea5f8f5e649 /ts | |
parent | 537212afee20e7bbf47888ca92ec13bb986e0a4f (diff) | |
download | flatbuffers-faeb04fbe1e92faff443966e362b4b4313dde293.tar.gz flatbuffers-faeb04fbe1e92faff443966e362b4b4313dde293.tar.bz2 flatbuffers-faeb04fbe1e92faff443966e362b4b4313dde293.zip |
Add type annotation to unspecified array (#6264)
The lack of any type on the `ret` variable was causing our typescript compiler to complain.
Diffstat (limited to 'ts')
-rw-r--r-- | ts/builder.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ts/builder.ts b/ts/builder.ts index 6be72fbb..137031ee 100644 --- a/ts/builder.ts +++ b/ts/builder.ts @@ -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(); } - }
\ No newline at end of file + } |