mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
22 lines
764 B
TypeScript
22 lines
764 B
TypeScript
// Type definitions for koa-mount 4.0
|
|
// Project: https://github.com/koajs/mount
|
|
// Definitions by: Tomek Łaziuk <https://github.com/tlaziuk>
|
|
// Vladislav Polyakov <https://github.com/polrk>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import Koa = require("koa");
|
|
|
|
declare function mount<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext>(
|
|
app: Koa.Middleware<StateT, ContextT> | Koa<StateT, ContextT>
|
|
): Koa.Middleware<StateT, ContextT>;
|
|
|
|
declare function mount<StateT = Koa.DefaultState, ContextT = Koa.DefaultContext>(
|
|
prefix: string,
|
|
app: Koa.Middleware<StateT, ContextT> | Koa<StateT, ContextT>
|
|
): Koa.Middleware<StateT, ContextT>;
|
|
|
|
declare namespace mount { }
|
|
|
|
export = mount;
|