diff options
| author | 2023-01-16 12:56:16 -0800 | |
|---|---|---|
| committer | 2023-01-16 12:56:16 -0800 | |
| commit | eef0e8c6bf6bb503cca4d4e92e4fa3443165a01d (patch) | |
| tree | 1c05469c6739330d399736ccc5480015e8c6fed5 | |
| parent | 4648131c416ad708c339789dd1979d4d8e738dd8 (diff) | |
| download | bun-eef0e8c6bf6bb503cca4d4e92e4fa3443165a01d.tar.gz bun-eef0e8c6bf6bb503cca4d4e92e4fa3443165a01d.tar.zst bun-eef0e8c6bf6bb503cca4d4e92e4fa3443165a01d.zip | |
Fix incorrect type
| -rw-r--r-- | packages/bun-types/bun.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/bun-types/bun.d.ts b/packages/bun-types/bun.d.ts index 98e385b98..c6b00a3a2 100644 --- a/packages/bun-types/bun.d.ts +++ b/packages/bun-types/bun.d.ts @@ -2787,7 +2787,7 @@ declare module "bun" { * When `connectError` is not specified, the rejected promise will be added * to the promise rejection queue. */ - connectError?(error: Error): void | Promise<void>; + connectError?(socket: Socket<Data>, error: Error): void | Promise<void>; } interface SocketOptions<Data = unknown> { |
