From 00da1c59433f08ad97a7c009482cf37ee43472c1 Mon Sep 17 00:00:00 2001 From: uhidontkno Date: Mon, 8 Jul 2024 14:44:27 -0400 Subject: [PATCH] fix: fix type errors --- src/BareTypes.ts | 2 +- src/RemoteClient.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BareTypes.ts b/src/BareTypes.ts index 999d770..b484a75 100644 --- a/src/BareTypes.ts +++ b/src/BareTypes.ts @@ -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, diff --git a/src/RemoteClient.ts b/src/RemoteClient.ts index 3495a5e..09be573 100644 --- a/src/RemoteClient.ts +++ b/src/RemoteClient.ts @@ -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 } } \ No newline at end of file