mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix incorrect type
This commit is contained in:
2
packages/bun-types/bun.d.ts
vendored
2
packages/bun-types/bun.d.ts
vendored
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user