Installation
npm install --save @types/express-to-koa
Summary
This package contains type definitions for express-to-koa (https://github.com/kaelzhang/express-to-koa).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-to-koa.
index.d.ts
import { IncomingMessage, ServerResponse } from "http";
import * as Koa from "koa";
export = expressToKoa;
declare function expressToKoa(
middleware: (
req: IncomingMessage,
res: ServerResponse,
next: (err?: any) => void,
) => void,
): Koa.Middleware;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/koa
Credits
These definitions were written by Xiaohan Zhang.