Files
DefinitelyTyped/types/koa-mount/index.d.ts
github-actions[bot] 3a5e12e4f1 Remove contributors with deleted accounts (#62848)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2022-10-24 12:11:03 -07:00

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;