Merge pull request #19190 from ondrowan/connect-flash-missing-defn

Add missing Request.flash function overload in connect-flash
This commit is contained in:
Mine Starks
2017-08-29 16:33:57 -07:00
committed by GitHub
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;
}