Skip to content

Commit 864bb2e

Browse files
committed
Fix Compile Issue
1 parent 5ba43fc commit 864bb2e

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
@@ -266,7 +266,7 @@ export async function ensureWebUiLib(baseLibName: string): Promise<string> {
266266
* @param {string} value
267267
* @returns a char[].
268268
*/
269-
export function toCString(value: string): Uint8Array<ArrayBuffer> {
269+
export function toCString(value: string): Uint8Array {
270270
return new TextEncoder().encode(value + "\0");
271271
}
272272

src/webui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ export class WebUI {
650650
* @param functionName - The name of the function to send data to.
651651
* @param raw - The raw data to send.
652652
*/
653-
sendRaw(functionName: string, raw: Uint8Array<ArrayBuffer>): void {
653+
sendRaw(functionName: string, raw: Uint8Array): void {
654654
this.#lib.symbols.webui_send_raw(
655655
BigInt(this.#window),
656656
toCString(functionName),

0 commit comments

Comments
 (0)