UNPKG

tedi

Version:

Express wrappper written in typescript with dependency injection capabilities

17 lines (16 loc) 511 B
/// <reference types="node" /> import * as express from "express"; import * as http from "http"; import { Module, Config, Logger } from "../core"; export declare class ExpressServer extends Module { private _server; private _app; constructor(); setConfig(config: Config): ExpressServer; getConfig(): Config; getLogger(): Logger; buildApp(app?: express.Application): express.Application; getApp(): express.Application; run(): Promise<http.Server>; stop(): Promise<any>; }