Added more specific types

This commit is contained in:
Jan Wolf
2017-04-25 18:41:16 +02:00
parent ca7130dfb1
commit 408fb4d5aa
4 changed files with 19 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
import * as autosni from "auto-sni";
let a = autosni({
test: 0
agreeTos: true,
email: '',
domains: ['']
});

View File

@@ -3,8 +3,23 @@
// Definitions by: Jan Wolf <https://github.com/janwo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import {Server} from "https";
declare namespace createServer {
}
declare function createServer(opts: any, app?: any): any;
declare function createServer(opts: {
email: string,
agreeTos: boolean,
domains: Array<string|string[]>,
ports?: {
http?: number,
https?: number
},
debug?: boolean
}, app?: any): Server;
export = createServer;