From 36541958e6ce57392cab656c765ea8c8d8ff9b05 Mon Sep 17 00:00:00 2001 From: Mikkel ALMONTE--RINGAUD Date: Sat, 17 Aug 2024 18:38:08 +0200 Subject: [PATCH] fix: typescript with latest bun types --- src/index.ts | 2 +- tsconfig.json | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7eb9557..55290d9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -428,7 +428,7 @@ class TCPWebSocket extends EventEmitter { return buffer.readUInt32BE(0) * 0x100000000 + buffer.readUInt32BE(4); } - public send (data: string | TypedArray | ArrayBuffer | Blob): void { + public send (data: string | ArrayBuffer | Blob): void { if (this.readyState === TCPWebSocket.CONNECTING) { throw new DOMException("connecting"); } diff --git a/tsconfig.json b/tsconfig.json index a3480d7..6eb2973 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,5 @@ { "compilerOptions": { - "lib": ["ESNext"], - "moduleResolution": "Bundler", "moduleDetection": "force", "module": "ESNext", @@ -20,11 +18,7 @@ "allowJs": true, "composite": true, "downlevelIteration": true, - "forceConsistentCasingInFileNames": true, - - "types": [ - "bun-types" - ] + "forceConsistentCasingInFileNames": true }, "include": ["src"],