@types/koa-mount
Version:
TypeScript definitions for koa-mount
34 lines (24 loc) • 1.16 kB
Markdown
# Installation
> `npm install --save @types/koa-mount`
# Summary
This package contains type definitions for koa-mount (https://github.com/koajs/mount).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-mount.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-mount/index.d.ts)
````ts
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;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:38 GMT
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa)
# Credits
These definitions were written by [Tomek Łaziuk](https://github.com/tlaziuk), and [Vladislav Polyakov](https://github.com/polrk).