@types/finalhandler
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Installation

npm install --save @types/finalhandler

Summary

This package contains type definitions for finalhandler (https://github.com/pillarjs/finalhandler).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/finalhandler.

index.d.ts

/// <reference types="node" />

import { IncomingMessage, ServerResponse } from "http";

declare function finalhandler(
    req: IncomingMessage,
    res: ServerResponse,
    options?: finalhandler.Options,
): (err?: any) => void;

declare namespace finalhandler {
    interface Options {
        env?: string | undefined;
        onerror?: ((err: any, req: IncomingMessage, res: ServerResponse) => void) | undefined;
    }
}

export = finalhandler;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Ilya Mochalov, and Mark Veronda.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/finalhandler

    Weekly Downloads

    57,704

    Version

    1.2.3

    License

    MIT

    Unpacked Size

    3.74 kB

    Total Files

    5

    Last publish

    Collaborators

    • types