UNPKG

832 BTypeScriptView Raw
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
9import Koa = require("koa");
10
11declare function mount<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext>(
12 app: Koa.Middleware<StateT, ContextT> | Koa<StateT, ContextT>
13): Koa.Middleware<StateT, ContextT>;
14
15declare 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
20declare namespace mount { }
21
22export = mount;