File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments