Fix typings for connect-flash.

The `msg` argument is optional.

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-09 18:06:01 +02:00
parent dcdbd3bf35
commit 394abe7cf8
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

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