mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Merge branch 'master' of https://github.com/janwo/DefinitelyTyped
# Conflicts: # types/auto-sni/index.d.ts
This commit is contained in:
24
types/auto-sni/index.d.ts
vendored
24
types/auto-sni/index.d.ts
vendored
@@ -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 <https://github.com/janwo>
|
||||
// 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<string | string[]>;
|
||||
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<string|string[]>,
|
||||
ports?: {
|
||||
http?: number,
|
||||
https?: number
|
||||
},
|
||||
debug?: boolean
|
||||
}, app?: any): Server;
|
||||
|
||||
export = createServer;
|
||||
|
||||
Reference in New Issue
Block a user