Fix incorrect type

This commit is contained in:
Jarred Sumner
2023-01-16 12:56:16 -08:00
parent 4648131c41
commit eef0e8c6bf

View File

@@ -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> {