mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-10 09:40:21 +08: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
4
types/connect-mongo/index.d.ts
vendored
4
types/connect-mongo/index.d.ts
vendored
@@ -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