mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Bring connect-mongo types in line with express-session 1.15 (#27713)
This commit is contained in:
committed by
Sheetal Nandi
parent
e9adaf7d2b
commit
82e1fac4d0
Vendored
+2
-2
@@ -104,11 +104,11 @@ declare namespace connectMongo {
|
||||
}
|
||||
|
||||
export class MongoStore extends session.Store {
|
||||
get: (sid: string, callback: (err: any, session: Express.Session) => void) => void;
|
||||
get: (sid: string, callback: (err: any, session: Express.Session | null) => void) => void;
|
||||
set: (sid: string, session: Express.Session, callback?: (err: any) => void) => void;
|
||||
destroy: (sid: string, callback?: (err: any) => void) => void;
|
||||
length: (callback: (err: any, length: number) => void) => void;
|
||||
clear: (callback?: (err: any) => void) => void;
|
||||
clear: (callback?: (err?: any) => void) => void;
|
||||
touch: (sid: string, session: Express.Session, callback?: (err: any) => void) => void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user