UNPKG

719 BTypeScriptView Raw
1/// <reference types="node" />
2import gridFSStream from 'gridfs-stream';
3import Koa from 'koa';
4import mongoose from 'mongoose';
5import net from 'net';
6import { IServerAppConfig } from './i-server-app-config';
7export declare class ServerApp {
8 readonly config: IServerAppConfig;
9 private _dbConn?;
10 private _grid?;
11 private _app;
12 private _servers;
13 constructor(config: IServerAppConfig, env?: string);
14 readonly name: string;
15 readonly dbConn: mongoose.Connection | undefined;
16 readonly grid: gridFSStream.Grid | undefined;
17 readonly app: Koa;
18 readonly servers: net.Server[];
19 env: string;
20 start(): Promise<void>;
21}
22//# sourceMappingURL=server-app.d.ts.map
\No newline at end of file