From fa8e0df16ff7ebe2586ef823350329fa0f3fa7b7 Mon Sep 17 00:00:00 2001 From: Olivia Trewin Date: Fri, 8 Jun 2018 17:57:44 -0500 Subject: [PATCH] Options argument should be optional --- types/node-ssdp/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/node-ssdp/index.d.ts b/types/node-ssdp/index.d.ts index 1ba2022723..62d2c7c663 100644 --- a/types/node-ssdp/index.d.ts +++ b/types/node-ssdp/index.d.ts @@ -103,13 +103,13 @@ export interface ServerOptions extends ClientOptions { } export abstract class Base extends events.EventEmitter { - constructor(opts: SsdpOptions); + constructor(opts?: SsdpOptions); addUSN(device: string): void; } export class Client extends Base { - constructor(opts: ClientOptions); + constructor(opts?: ClientOptions); /** * Start the listener for multicast notifications from SSDP devices @@ -125,7 +125,7 @@ export class Client extends Base { } export class Server extends Base { - constructor(opts: ServerOptions); + constructor(opts?: ServerOptions); /** * Binds UDP socket to an interface/port and starts advertising.