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

0.0.5 • Public • Published

Installation

npm install --save @types/express-flash

Summary

This package contains type definitions for express-flash (https://github.com/RGBboy/express-flash).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-flash.

index.d.ts

import express = require("express");

declare global {
    namespace Express {
        interface Request {
            flash(message?: string): { [key: string]: string[] };
            flash(event: string, message: string | string[]): any;
        }
    }
}

declare function flash(): express.RequestHandler;

export = flash;

Additional Details

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

Credits

These definitions were written by Ian Mobley, and Piotr Błażejewicz.

/@types/express-flash/

    Package Sidebar

    Install

    npm i @types/express-flash

    Weekly Downloads

    4,610

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    3.53 kB

    Total Files

    5

    Last publish

    Collaborators

    • types