Add missing Request.flash function overload in connect-flash

This commit is contained in:
Ondrej Slinták
2017-08-21 17:01:36 +02:00
parent 491b48e136
commit 79b75d36db
2 changed files with 2 additions and 0 deletions

View File

@@ -13,4 +13,5 @@ app.use(flash({
app.use(function(req: Express.Request, res: Express.Response, next: Function) {
req.flash('Message');
req.flash('info', 'Message');
req.flash();
});

View File

@@ -7,6 +7,7 @@
declare namespace Express {
export interface Request {
flash(): { [key: string]: string[] };
flash(message: string): any;
flash(event: string, message: string): any;
}