1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-26 04:14:29 +00:00
code-server-2/typings/httpolyglot/index.d.ts

11 lines
378 B
TypeScript
Raw Normal View History

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