Skip to content

Commit

Permalink
fix: typescript with latest bun types
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Aug 17, 2024
1 parent 48ab6c3 commit 3654195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"compilerOptions": {
"lib": ["ESNext"],

"moduleResolution": "Bundler",
"moduleDetection": "force",
"module": "ESNext",
Expand All @@ -20,11 +18,7 @@
"allowJs": true,
"composite": true,
"downlevelIteration": true,
"forceConsistentCasingInFileNames": true,

"types": [
"bun-types"
]
"forceConsistentCasingInFileNames": true
},

"include": ["src"],
Expand Down

0 comments on commit 3654195

Please sign in to comment.