fix: fix type errors

This commit is contained in:
uhidontkno 2024-07-08 14:44:27 -04:00
parent 3fbefd2b1b
commit 00da1c5943
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ export interface BareTransport {
onmessage: (data: Blob | ArrayBuffer | string) => void, onmessage: (data: Blob | ArrayBuffer | string) => void,
onclose: (code: number, reason: string) => void, onclose: (code: number, reason: string) => void,
onerror: (error: string) => void, onerror: (error: string) => void,
) => [ (data: Blob | ArrayBuffer | string) => void, (code: number, reason: string) => void ]; ) => any;
request: ( request: (
remote: URL, remote: URL,

View file

@ -101,6 +101,6 @@ export default class RemoteTransport implements BareTransport {
onclose: (code: number, reason: string) => void, onclose: (code: number, reason: string) => void,
onerror: (error: string) => void onerror: (error: string) => void
): (data: Blob | ArrayBuffer | string) => void { ): (data: Blob | ArrayBuffer | string) => void {
throw "why are you calling connect from remoteclient" throw "why are you calling connect from remoteclient" // because it makes sense
} }
} }