From faeb04fbe1e92faff443966e362b4b4313dde293 Mon Sep 17 00:00:00 2001 From: James Kuszmaul Date: Mon, 16 Nov 2020 10:49:53 -0800 Subject: [PATCH] Add type annotation to unspecified array (#6264) The lack of any type on the `ret` variable was causing our typescript compiler to complain. --- ts/builder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/builder.ts b/ts/builder.ts index 6be72fbbe..137031ee6 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 + }