mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 12:33:17 +08:00
Added more specific types to error callbacks
This commit is contained in:
4
types/node-ssdp/index.d.ts
vendored
4
types/node-ssdp/index.d.ts
vendored
@@ -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<void>;
|
||||
start(cb?: (error: Error) => void): Promise<void>;
|
||||
/**
|
||||
* 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<void>;
|
||||
start(cb?: (error: Error) => void): void | Promise<void>;
|
||||
/**
|
||||
* Advertise shutdown and close UDP socket.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user