4.0.5 • Published 6 months ago

@types/koa-mount v4.0.5

Weekly downloads
71,307
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for koa-mount 4.0
// Project: https://github.com/koajs/mount
// Definitions by: AmirSaber Sharifi <https://github.com/amirsaber>
//                 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;

Additional Details

  • Last updated: Wed, 25 Aug 2021 04:01:22 GMT
  • Dependencies: @types/koa
  • Global values: none

Credits

These definitions were written by AmirSaber Sharifi, Tomek Łaziuk, and Vladislav Polyakov.