Implement new structure
This commit is contained in:
10
typings/httpolyglot/index.d.ts
vendored
Normal file
10
typings/httpolyglot/index.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
declare module "httpolyglot" {
|
||||
import * as http from "http"
|
||||
import * as https from "https"
|
||||
|
||||
function createServer(requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void): http.Server
|
||||
function createServer(
|
||||
options: https.ServerOptions,
|
||||
requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void
|
||||
): https.Server
|
||||
}
|
Reference in New Issue
Block a user