1.2.3 • Published 6 months ago

@types/finalhandler v1.2.3

Weekly downloads
103,368
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for finalhandler 1.1
// Project: https://github.com/pillarjs/finalhandler
// Definitions by: Ilya Mochalov <https://github.com/chrootsu>
//                 Mark Veronda <https://github.com/hbomark>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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, 06 Jul 2021 20:32:58 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

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