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

    0.0.32 • Public • Published

    Installation

    npm install --save @types/method-override

    Summary

    This package contains type definitions for method-override (https://github.com/expressjs/method-override).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/method-override.

    index.d.ts

    // Type definitions for method-override
    // Project: https://github.com/expressjs/method-override
    // Definitions by: Santi Albo <https://github.com/santialbo>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    declare namespace Express {
        export interface Request {
            originalMethod?: string | undefined;
        }
    }
    
    import express = require('express');
    
    declare namespace e {
        export interface MethodOverrideOptions {
            methods: string[];
        }
    }
    
    declare function e(getter?: string | ((req: express.Request, res: express.Response) => string), options?: e.MethodOverrideOptions): express.RequestHandler;
    
    export = e;

    Additional Details

    • Last updated: Tue, 06 Jul 2021 22:03:04 GMT
    • Dependencies: @types/express
    • Global values: none

    Credits

    These definitions were written by Santi Albo.

    Keywords

    none

    Install

    npm i @types/method-override

    DownloadsWeekly Downloads

    36,394

    Version

    0.0.32

    License

    MIT

    Unpacked Size

    4.05 kB

    Total Files

    4

    Last publish

    Collaborators

    • types