mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
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:
committed by
Daniel Rosenwasser
parent
c5bbcb252c
commit
a298ed59c8
+1
-1
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user