mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Allow session to be null (#43240)
According to the docs, destroying the session can be done by setting req.session = null https://github.com/expressjs/cookie-session#destroying-a-session
This commit is contained in:
parent
6ad27673b7
commit
252d080626
2
types/cookie-session/index.d.ts
vendored
2
types/cookie-session/index.d.ts
vendored
@ -103,7 +103,7 @@ declare namespace CookieSessionInterfaces {
|
||||
/**
|
||||
* Represents the session for the given request.
|
||||
*/
|
||||
session?: CookieSessionObject;
|
||||
session?: CookieSessionObject | null;
|
||||
|
||||
/**
|
||||
* Represents the session options for the current request. These options are a shallow clone of what was provided at middleware construction and can be altered to change cookie setting behavior on a per-request basis.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user