Skip to content

Commit

Permalink
fix: Argument of type 'ReadonlyUint8Array' is not assignable to param…
Browse files Browse the repository at this point in the history
…eter of type 'Uint8Array | number[]'.
  • Loading branch information
polasekr committed Jun 19, 2024
1 parent fc78e2c commit 4fad51d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schemas-ts/deploy-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]!);
Expand Down
2 changes: 1 addition & 1 deletion schemas-ts/dist/deploy-v1.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fad51d

Please sign in to comment.