UNPKG

@speedy-js/mono

Version:

Monorepo development & continuous integration tooling.

26 lines 717 B
/// <reference types="node" /> /** * Module dependencies */ import http from 'http'; import { Application, Request, Response, NextFunction } from 'express'; export declare type TConstructor<T, U extends unknown[] = unknown[]> = new (...args: U) => T; export { Application, Request, Response, NextFunction }; export interface IServer { app: Application; server: http.Server; ip: string; port: number; url: string; origin: string; protocol: 'http' | 'https'; bootstrap(): void; listen(): Promise<void>; destroy(): Promise<void>; } export declare type ISimpleServerConstructor = TConstructor<IServer, [ number, string, string ]>; //# sourceMappingURL=server.d.ts.map