From ab582a400bea826f1ef4c1c64d67ade215a6e4e8 Mon Sep 17 00:00:00 2001 From: Olivia Trewin Date: Fri, 8 Jun 2018 20:00:18 -0500 Subject: [PATCH] Added more specific types to error callbacks --- types/node-ssdp/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */