JSPM

  • Created
  • Published
  • Downloads 116022
  • Score
    100M100P100Q162013F
  • License MIT

TypeScript definitions for finalhandler

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/finalhandler) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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: Sat, 07 Jun 2025 02:15:25 GMT
    • Dependencies: @types/node

    Credits

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