From 394abe7cf88856081133296d6190346d16d70d50 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 9 May 2020 18:06:01 +0200 Subject: [PATCH] Fix typings for connect-flash. The `msg` argument is optional. Signed-off-by: David Mehren --- lib/library-ext.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/library-ext.d.ts b/lib/library-ext.d.ts index b08d3b242..0d373e22f 100644 --- a/lib/library-ext.d.ts +++ b/lib/library-ext.d.ts @@ -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; } }