You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of having to override the types declaration file in order to correctly type cookie-session session, would a solution be to update CookieSessionObject type to:
typeCookieSessionObject<T>=T&{/** * Is true if the session has been changed during the request. */isChanged?: boolean|undefined;/** * Is true if the session is new. */isNew?: boolean|undefined;/** * Determine if the session has been populated with data or is empty. */isPopulated?: boolean|undefined;}
This generic could then be an optional parameter on the express Request type. Any thoughts on this?
The text was updated successfully, but these errors were encountered:
RE:
DefinitelyTyped/types/cookie-session/index.d.ts
Line 83 in 7b6bb68
Instead of having to override the types declaration file in order to correctly type cookie-session session, would a solution be to update
CookieSessionObject
type to:This generic could then be an optional parameter on the express
Request
type. Any thoughts on this?The text was updated successfully, but these errors were encountered: