DefinitelyTyped/types/express-flash/index.d.ts
Piotr Błażejewicz (Peter Blazejewicz) 05ae673ef8
feat(express-flash): align definition to connect-flash (#42071)
- refine definition according to source code in samples
- update configuration to latest DT settings

Thanks!
2020-02-10 12:53:47 -08:00

21 lines
622 B
TypeScript

// Type definitions for express-flash 0.0
// Project: https://github.com/RGBboy/express-flash
// Definitions by: Ian Mobley <https://github.com/iMobs>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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;