mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
express-session: add touch method definition
This commit is contained in:
Vendored
+2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user