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

3.0.0 • 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.

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: Mon, 02 Dec 2024 21:33:37 GMT

  • Dependencies: none

  • Peer dependencies: @types/express

Credits

These definitions were written by Santi Albo.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/method-override

Weekly Downloads

241,727

Version

3.0.0

License

MIT

Unpacked Size

3.6 kB

Total Files

5

Last publish

Collaborators

  • types