1 | // Type definitions for koa-mount 4.0
|
2 | // Project: https://github.com/koajs/mount
|
3 | // Definitions by: AmirSaber Sharifi <https://github.com/amirsaber>
|
4 | // Tomek Łaziuk <https://github.com/tlaziuk>
|
5 | // Vladislav Polyakov <https://github.com/polrk>
|
6 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
7 | // TypeScript Version: 2.3
|
8 |
|
9 | import Koa = require("koa");
|
10 |
|
11 | declare function mount<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext>(
|
12 | app: Koa.Middleware<StateT, ContextT> | Koa<StateT, ContextT>
|
13 | ): Koa.Middleware<StateT, ContextT>;
|
14 |
|
15 | declare function mount<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext>(
|
16 | prefix: string,
|
17 | app: Koa.Middleware<StateT, ContextT> | Koa<StateT, ContextT>
|
18 | ): Koa.Middleware<StateT, ContextT>;
|
19 |
|
20 | declare namespace mount { }
|
21 |
|
22 | export = mount;
|