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