@types/express-session
Advanced tools
Comparing version 1.17.4 to 1.17.5
@@ -18,2 +18,4 @@ // Type definitions for express-session 1.17 | ||
namespace Express { | ||
type SessionStore = session.Store & { generate: (req: Request) => void }; | ||
// Inject additional properties on express.Request | ||
@@ -35,2 +37,9 @@ interface Request { | ||
sessionID: string; | ||
/** | ||
* The Store in use. | ||
* Even though this property isn't marked as optional, it won't exist until you use the `express-session` middleware | ||
* The function `generate` is added by express-session | ||
*/ | ||
sessionStore: SessionStore; | ||
} | ||
@@ -317,3 +326,3 @@ } | ||
load(sid: string, callback: (err: any, session?: SessionData) => any): void; | ||
createSession(req: express.Request, session: SessionData): void; | ||
createSession(req: express.Request, session: SessionData): Session & SessionData; | ||
@@ -320,0 +329,0 @@ /** |
{ | ||
"name": "@types/express-session", | ||
"version": "1.17.4", | ||
"version": "1.17.5", | ||
"description": "TypeScript definitions for express-session", | ||
@@ -55,4 +55,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-session", | ||
}, | ||
"typesPublisherContentHash": "c9cb0d7a618a654c1cf1ded8f8b9440df59162cf275c9fae48c3a41afa699dcf", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "9d0551cf0bdb891e1753ebd24dae4983885b37ebda7a3502c34346e1eb58cd12", | ||
"typeScriptVersion": "4.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 20:32:51 GMT | ||
* Last updated: Thu, 07 Jul 2022 03:02:22 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23600
320