2020-02-05 02:27:46 +07:00
|
|
|
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,
|
2020-02-15 07:46:00 +07:00
|
|
|
requestListener?: (req: http.IncomingMessage, res: http.ServerResponse) => void,
|
2020-02-05 02:27:46 +07:00
|
|
|
): https.Server
|
|
|
|
}
|