1 | # Installation
|
2 | > `npm install --save @types/finalhandler`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for finalhandler (https://github.com/pillarjs/finalhandler).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/finalhandler.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/finalhandler/index.d.ts)
|
10 | ````ts
|
11 | /// <reference types="node" />
|
12 |
|
13 | import { IncomingMessage, ServerResponse } from "http";
|
14 |
|
15 | declare function finalhandler(
|
16 | req: IncomingMessage,
|
17 | res: ServerResponse,
|
18 | options?: finalhandler.Options,
|
19 | ): (err?: any) => void;
|
20 |
|
21 | declare namespace finalhandler {
|
22 | interface Options {
|
23 | env?: string | undefined;
|
24 | onerror?: ((err: any, req: IncomingMessage, res: ServerResponse) => void) | undefined;
|
25 | }
|
26 | }
|
27 |
|
28 | export = finalhandler;
|
29 |
|
30 | ````
|
31 |
|
32 | ### Additional Details
|
33 | * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
|
34 | * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
35 |
|
36 | # Credits
|
37 | These definitions were written by [Ilya Mochalov](https://github.com/chrootsu), and [Mark Veronda](https://github.com/hbomark).
|
38 |
|
\ | No newline at end of file |