mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Added more specific types
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import * as autosni from "auto-sni";
|
||||
let a = autosni({
|
||||
test: 0
|
||||
agreeTos: true,
|
||||
email: '',
|
||||
domains: ['']
|
||||
});
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user