Files
DefinitelyTyped/koa-mount/koa-mount.d.ts
Yanlong Wang b20eb12c4c Use import for koa-mount rather than require (#10046)
Before: require("koa-mount")
After: import * as mount from "koa-mount"
2016-07-11 22:22:30 +09:00

26 lines
647 B
TypeScript

// Type definitions for koa-mount v2.0.0
// Project: https://github.com/koajs/mount
// Definitions by: AmirSaber Sharifi <https://github.com/amirsaber>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../koa/koa.d.ts" />
declare module "koa-mount" {
import * as Koa from "koa";
interface Function { (ctx: Koa.Context, next?: () => any): any }
function mount(app: Function): Function;
function mount(app: Koa): Function;
function mount(prefix: string, app: Function): Function;
function mount(prefix: string, app: Koa): Function;
namespace mount {}
export = mount;
}