Added flash function to Request interface

Signed-off-by: Yannick Bungers <git@innay.de>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Yannick Bungers 2020-04-13 13:05:29 +02:00 committed by David Mehren
parent e4b2acf53e
commit f628b85c05
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -1,7 +1,9 @@
import { User } from './models'
declare module 'express' {
export interface Request {
user?: User;
flash (type: string, msg: string): any;
}
}