mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-04 20:54:36 +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:
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.
|
||||
|
||||
Reference in New Issue
Block a user