diff --git a/types/auto-sni/index.d.ts b/types/auto-sni/index.d.ts index bc252831ca..075f093f0b 100644 --- a/types/auto-sni/index.d.ts +++ b/types/auto-sni/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for auto-sni 2.1 +// Type definitions for auto-sni v2.1.1 // Project: https://www.npmjs.com/package/auto-sni // Definitions by: Jan Wolf // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -8,18 +8,18 @@ import {Server} from "https"; declare namespace createServer { - interface Options { - email: string; - agreeTos: boolean; - domains: Array; - ports?: { - http?: number, - https?: number - }; - debug?: boolean; - } + } -declare function createServer(opts: createServer.Options, app?: any): Server; +declare function createServer(opts: { + email: string, + agreeTos: boolean, + domains: Array, + ports?: { + http?: number, + https?: number + }, + debug?: boolean +}, app?: any): Server; export = createServer;