Skip to content

Commit 06a7233

Browse files
committed
type fix
1 parent 3ca6c62 commit 06a7233

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/orm/db/postgres/in-pg/src/wasmLoader.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export class WasmLoader {
9090
) as WebAssembly.ModuleImports,
9191
};
9292

93-
const result = await WebAssembly.instantiate(this.inPg.wasmData, info) as
93+
const result = await WebAssembly.instantiate(
94+
this.inPg.wasmData,
95+
info,
96+
) as unknown as
9497
& WebAssembly.Instance
9598
& { instance: WebAssembly.Instance };
9699

src/serve/in-response.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ export class InResponse {
246246
this.#content = options.content;
247247
return;
248248
}
249-
this.#content = new TextEncoder().encode(options.content);
249+
const content = new TextEncoder().encode(options.content) as Uint8Array<
250+
ArrayBuffer
251+
>;
252+
this.#content = content;
250253
}
251254

252255
/**

0 commit comments

Comments
 (0)