mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -04:00
fix: fix type errors
This commit is contained in:
parent
3fbefd2b1b
commit
00da1c5943
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ export interface BareTransport {
|
|||
onmessage: (data: Blob | ArrayBuffer | string) => void,
|
||||
onclose: (code: number, reason: string) => void,
|
||||
onerror: (error: string) => void,
|
||||
) => [ (data: Blob | ArrayBuffer | string) => void, (code: number, reason: string) => void ];
|
||||
) => any;
|
||||
|
||||
request: (
|
||||
remote: URL,
|
||||
|
|
|
@ -101,6 +101,6 @@ export default class RemoteTransport implements BareTransport {
|
|||
onclose: (code: number, reason: string) => void,
|
||||
onerror: (error: 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue