0.0.40 • Published 6 months ago

@types/connect-flash v0.0.40

Weekly downloads
22,284
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for connect-flash
// Project: https://github.com/jaredhanson/connect-flash
// Definitions by: Andreas Gassmann <https://github.com/AndreasGassmann>
//                 Drew Lemmy <https://github.com/Lemmmy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <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: Thu, 08 Jul 2021 09:08:07 GMT
  • Dependencies: @types/express
  • Global values: none

Credits

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

0.0.40

6 months ago

0.0.38

8 months ago

0.0.39

6 months ago

0.0.37

3 years ago

0.0.36

3 years ago

0.0.35

5 years ago

0.0.34

6 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27-alpha

8 years ago

0.0.26-alpha

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.16-alpha

8 years ago

0.0.15-alpha

8 years ago