diff --git a/types/node-ssdp/index.d.ts b/types/node-ssdp/index.d.ts index b460e68f71..3ae4da7643 100644 --- a/types/node-ssdp/index.d.ts +++ b/types/node-ssdp/index.d.ts @@ -126,7 +126,7 @@ export class Client extends Base { * @param cb callback to socket.bind * @returns promise when socket.bind is ready */ - start(cb?: (error: any) => void): Promise; + start(cb?: (error: Error) => void): Promise; /** * Close UDP socket. */ @@ -146,7 +146,7 @@ export class Server extends Base { * @param cb callback to socket.bind * @returns promise when socket.bind is ready */ - start(cb?: (error: any) => void): void | Promise; + start(cb?: (error: Error) => void): void | Promise; /** * Advertise shutdown and close UDP socket. */