Updated CookieOptions.sameSite to correctly reflect new change to @types/express-session (#41038)

The change to express-session on Nov 18th (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/40314) broke type checking for connect-redis and express-session. 

Specifically: 
Type 'string | boolean | undefined' is not assignable to type 'boolean | "lax" | "strict" | "none" | undefined'
This commit is contained in:
Xzas22
2019-12-19 22:10:31 -08:00
committed by Daniel Rosenwasser
parent c5bbcb252c
commit a298ed59c8
+1 -1
View File
@@ -185,7 +185,7 @@ export interface CookieOptions {
domain?: string;
secure?: boolean;
encode?: (val: string) => string;
sameSite?: boolean | string;
sameSite?: boolean | 'lax' | 'strict' | 'none';
}
export interface ByteRange { start: number; end: number; }