From 4fad51d28e3e37ac2e7ff78240d83c86f632658b Mon Sep 17 00:00:00 2001 From: Robert Polasek Date: Wed, 19 Jun 2024 16:26:25 -0400 Subject: [PATCH] fix: Argument of type 'ReadonlyUint8Array' is not assignable to parameter of type 'Uint8Array | number[]'. --- schemas-ts/deploy-v1.ts | 2 +- schemas-ts/dist/deploy-v1.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas-ts/deploy-v1.ts b/schemas-ts/deploy-v1.ts index 1f7cd93..8f7fdd0 100644 --- a/schemas-ts/deploy-v1.ts +++ b/schemas-ts/deploy-v1.ts @@ -98,7 +98,7 @@ static addOwner(builder:flatbuffers.Builder, ownerOffset:flatbuffers.Offset) { builder.addFieldOffset(0, ownerOffset, 0); } -static createOwnerVector(builder:flatbuffers.Builder, data:number[]|Uint8Array):flatbuffers.Offset { +static createOwnerVector(builder:flatbuffers.Builder, data:number[]|ReadonlyUint8Array):flatbuffers.Offset { builder.startVector(1, data.length, 1); for (let i = data.length - 1; i >= 0; i--) { builder.addInt8(data[i]!); diff --git a/schemas-ts/dist/deploy-v1.d.ts b/schemas-ts/dist/deploy-v1.d.ts index 6e0a088..b425ed2 100644 --- a/schemas-ts/dist/deploy-v1.d.ts +++ b/schemas-ts/dist/deploy-v1.d.ts @@ -22,7 +22,7 @@ export declare class DeployV1 { inputsArray(): Uint8Array | null; static startDeployV1(builder: flatbuffers.Builder): void; static addOwner(builder: flatbuffers.Builder, ownerOffset: flatbuffers.Offset): void; - static createOwnerVector(builder: flatbuffers.Builder, data: number[] | Uint8Array): flatbuffers.Offset; + static createOwnerVector(builder: flatbuffers.Builder, data: number[] | ReadonlyUint8Array): flatbuffers.Offset; static startOwnerVector(builder: flatbuffers.Builder, numElems: number): void; static addImageId(builder: flatbuffers.Builder, imageIdOffset: flatbuffers.Offset): void; static addProgramName(builder: flatbuffers.Builder, programNameOffset: flatbuffers.Offset): void;