interface DevHttpServer {
    addListener: ((event, hander) => void);
    getPort: (() => number);
    httpServer?: Server<typeof IncomingMessage, typeof ServerResponse>;
    start: (() => void);
    stop: (() => void);
}

Properties

addListener: ((event, hander) => void)

Type declaration

    • (event, hander): void
    • Parameters

      Returns void

getPort: (() => number)

Type declaration

    • (): number
    • Returns number

httpServer?: Server<typeof IncomingMessage, typeof ServerResponse>
start: (() => void)

Type declaration

    • (): void
    • Returns void

stop: (() => void)

Type declaration

    • (): void
    • Returns void