DefinitelyTyped/types/koa-convert/index.d.ts
2019-11-07 09:51:41 -08:00

14 lines
443 B
TypeScript

// Type definitions for koa-convert 1.2
// Project: https://github.com/koajs/convert, https://github.com/gyson/koa-convert
// Definitions by: Daniel Byrne <https://github.com/danwbyrne>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Context, Middleware, Next } from "koa";
declare function convert(
mw: (context: Context, next: Next) => Generator
): Middleware;
export = convert;