* add id

* remove readonly

* add touch after

* fix typo
This commit is contained in:
Moshe Atlow
2016-09-30 21:45:24 +09:00
committed by Masahiro Wakame
parent 8acf2ed755
commit a4b30baa60
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -78,6 +78,12 @@ declare module "connect-mongo" {
* (Default: 10)
*/
autoRemoveInterval?: number;
/**
* don't save session if unmodified
*/
touchAfter?: number;
}
export interface MongoUrlOptions extends DefaultOptions {
+2
View File
@@ -10,10 +10,12 @@ declare namespace Express {
export interface Request {
session?: Session;
sessionID?: string;
}
export interface Session {
[key: string]: any;
id: string;
regenerate: (callback: (err: any) => void) => void;
destroy: (callback: (err: any) => void) => void;