express-session: add touch method definition

This commit is contained in:
Stéphane Veyret
2018-05-21 10:30:03 +02:00
parent 215d7f0324
commit b0ac435e1c

View File

@@ -87,6 +87,7 @@ declare namespace session {
all: (callback: (err: any, obj?: { [sid: string]: Express.SessionData; } | null) => void) => void;
length: (callback: (err: any, length?: number | null) => void) => void;
clear: (callback?: (err?: any) => void) => void;
touch: (sid: string, session: Express.Session, callback?: (err?: any) => void) => void;
}
class MemoryStore implements BaseMemoryStore {
@@ -96,6 +97,7 @@ declare namespace session {
all: (callback: (err: any, obj?: { [sid: string]: Express.Session; } | null) => void) => void;
length: (callback: (err: any, length?: number | null) => void) => void;
clear: (callback?: (err?: any) => void) => void;
touch: (sid: string, session: Express.Session, callback?: (err?: any) => void) => void;
}
}