diff options
Diffstat (limited to 'ts/builder.ts')
-rw-r--r-- | ts/builder.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ts/builder.ts b/ts/builder.ts index 137031ee..7aad15e2 100644 --- a/ts/builder.ts +++ b/ts/builder.ts @@ -586,7 +586,7 @@ export class Builder { * * @returns offset of obj */ - createObjectOffset(obj: string | IGeneratedObject): Offset { + createObjectOffset(obj: string | any): Offset { if(obj === null) { return 0 } @@ -603,7 +603,7 @@ export class Builder { * * @returns list of offsets of each non null object */ - createObjectOffsetList(list: string[]): Offset[] { + createObjectOffsetList(list: string[] | any[]): Offset[] { const ret: number[] = []; for(let i = 0; i < list.length; ++i) { @@ -620,7 +620,7 @@ export class Builder { return ret; } - createStructOffsetList(list: string[], startFunc: (builder: Builder, length: number) => void): Offset { + createStructOffsetList(list: string[] | any[], startFunc: (builder: Builder, length: number) => void): Offset { startFunc(this, list.length); this.createObjectOffsetList(list); return this.endVector(); |