mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
add id (#11619)
* add id * remove readonly * add touch after * fix typo
This commit is contained in:
committed by
Masahiro Wakame
parent
8acf2ed755
commit
a4b30baa60
Vendored
+6
@@ -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 {
|
||||
|
||||
Vendored
+2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user