Files
Xiaohan Zhang fef2c8c616 Add express-to-koa definition (#23153)
* Add express-to-koa definition

* Fix types
2018-01-24 08:57:46 -08:00

19 lines
546 B
TypeScript

// Type definitions for express-to-koa 1.0
// Project: https://github.com/kaelzhang/express-to-koa
// Definitions by: Xiaohan Zhang <https://github.com/xiaohanzhang>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as Koa from "koa";
import { IncomingMessage, ServerResponse } from "http";
export = expressToKoa;
declare function expressToKoa(
middleware: (
req: IncomingMessage,
res: ServerResponse,
next: (err?: any) => void,
) => void
): Koa.Middleware;