code-server/typings/httpolyglot/index.d.ts

11 lines
377 B
TypeScript
Raw Normal View History

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