UNPKG

450 BTypeScriptView Raw
1/// <reference types="node" />
2
3import { IncomingMessage, ServerResponse } from "http";
4
5declare function finalhandler(
6 req: IncomingMessage,
7 res: ServerResponse,
8 options?: finalhandler.Options,
9): (err?: any) => void;
10
11declare namespace finalhandler {
12 interface Options {
13 env?: string | undefined;
14 onerror?: ((err: any, req: IncomingMessage, res: ServerResponse) => void) | undefined;
15 }
16}
17
18export = finalhandler;
19
\No newline at end of file