Bring connect-mongo types in line with express-session 1.15 (#27713)

This commit is contained in:
Seth Etter
2018-08-06 13:44:18 -05:00
committed by Sheetal Nandi
parent e9adaf7d2b
commit 82e1fac4d0

View File

@@ -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;
}
}