@types/connect-mongodb-session
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -29,7 +29,7 @@ // Type definitions for connect-mongodb-session 2.4 | ||
collection: string; | ||
expires?: number; | ||
databaseName?: string; | ||
connectionOptions?: MongoClientOptions; | ||
idField?: string; | ||
expires?: number | undefined; | ||
databaseName?: string | undefined; | ||
connectionOptions?: MongoClientOptions | undefined; | ||
idField?: string | undefined; | ||
} | ||
} |
{ | ||
"name": "@types/connect-mongodb-session", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "TypeScript definitions for connect-mongodb-session", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-mongodb-session", | ||
"license": "MIT", | ||
@@ -30,4 +31,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "095c2637f37b7d34ae3c952bf9bd829e419f0c5b97cce8da4a10e00b9ba583d3", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "fa5f26e49311e718d96147254a209fbed84faafad6b4d4a83a8e29b194bf2c25", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,43 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-mongodb-session. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-mongodb-session/index.d.ts) | ||
````ts | ||
// Type definitions for connect-mongodb-session 2.4 | ||
// Project: https://github.com/mongodb-js/connect-mongodb-session#readme | ||
// Definitions by: Nattapong Sirilappanich <https://github.com/NattapongSiri> | ||
// Ravi van Rooijen <https://github.com/HoldYourWaffle> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import session = require('express-session'); | ||
import { MongoClient, MongoClientOptions } from 'mongodb'; | ||
export = ConnectMongoDBSession; | ||
declare function ConnectMongoDBSession(fn: typeof session): typeof ConnectMongoDBSession.MongoDBStore; | ||
declare namespace ConnectMongoDBSession { | ||
class MongoDBStore extends session.Store { | ||
constructor(connection?: MongoDBSessionOptions, callback?: (error: Error) => void); | ||
client: MongoClient; | ||
get(sid: string, callback: (err: any, session?: session.SessionData | null) => void): void; | ||
set(sid: string, session: session.SessionData, callback?: (err?: any) => void): void; | ||
destroy(sid: string, callback?: (err?: any) => void): void; | ||
all(callback: (err: any, obj?: session.SessionData[] | { [sid: string]: session.SessionData; } | null) => void): void; | ||
clear(callback?: (err?: any) => void): void; | ||
} | ||
interface MongoDBSessionOptions { | ||
uri: string; | ||
collection: string; | ||
expires?: number | undefined; | ||
databaseName?: string | undefined; | ||
connectionOptions?: MongoClientOptions | undefined; | ||
idField?: string | undefined; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 24 Nov 2020 11:27:55 GMT | ||
* Last updated: Thu, 08 Jul 2021 09:08:08 GMT | ||
* Dependencies: [@types/express-session](https://npmjs.com/package/@types/express-session), [@types/mongodb](https://npmjs.com/package/@types/mongodb) | ||
@@ -14,0 +52,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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6194
0
55