# Conflicts:
#	types/auto-sni/index.d.ts
This commit is contained in:
Jan Wolf
2017-05-06 11:14:46 +02:00

View File

@@ -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;