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

0.0.40 • Public • Published

Installation

npm install --save @types/connect-flash

Summary

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

Details

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

index.d.ts

/// <reference types="express" />

declare namespace Express {
    export interface Request {
        flash(): { [key: string]: string[] };
        flash(message: string): string[];
        flash(type: string, message: string[] | string): number;
        flash(type: string, format: string, ...args: any[]): number;
    }
}

declare module "connect-flash" {
    import express = require("express");
    interface IConnectFlashOptions {
        unsafe?: boolean | undefined;
    }
    function e(options?: IConnectFlashOptions): express.RequestHandler;
    export = e;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Andreas Gassmann, and Drew Lemmy.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/connect-flash

Weekly Downloads

60,855

Version

0.0.40

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • types