Skip to content

Commit fa5510b

Browse files
committed
fix deno check
1 parent 12d95bb commit fa5510b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export async function ensureWebUiLib(baseLibName: string): Promise<string> {
263263
* @param {string} value
264264
* @returns a char[].
265265
*/
266-
export function toCString(value: string): Uint8Array {
266+
export function toCString(value: string): Uint8Array<ArrayBuffer> {
267267
return new TextEncoder().encode(value + "\0");
268268
}
269269

src/webui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ export class WebUI {
610610
* @param functionName - The name of the function to send data to.
611611
* @param raw - The raw data to send.
612612
*/
613-
sendRaw(functionName: string, raw: Uint8Array): void {
613+
sendRaw(functionName: string, raw: Uint8Array<ArrayBuffer>): void {
614614
this.#lib.symbols.webui_send_raw(
615615
BigInt(this.#window),
616616
toCString(functionName),

0 commit comments

Comments
 (0)