1 | import Koa = require("koa");
|
2 | import {
|
3 | IException
|
4 | } from "./Exception";
|
5 | import {
|
6 | IApp,
|
7 | IApps,
|
8 | IContext,
|
9 | IGlobalPath,
|
10 | ILoader
|
11 | } from "./interface";
|
12 | import {
|
13 | IRoutes
|
14 | } from "./Routes";
|
15 |
|
16 | export interface IBun extends Koa {
|
17 | name: string;
|
18 | Logger: any;
|
19 | Routes: typeof IRoutes;
|
20 | use: any;
|
21 | Loader: ILoader;
|
22 | plugins: any;
|
23 | lib: any;
|
24 | app: IApps | IApp;
|
25 | context: IContext;
|
26 | globalPath: IGlobalPath;
|
27 | globalModule: any;
|
28 | isSingle: boolean;
|
29 | port: number | string;
|
30 | Exception: typeof IException;
|
31 |
|
32 | emitter(eventName: string, freeze? : any): void;
|
33 | bootstrap(): void;
|
34 | } |
\ | No newline at end of file |