mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Update express-session.d.ts
These functions still exist on the documentation and in the code.
This commit is contained in:
Vendored
+7
@@ -69,6 +69,13 @@ declare module "express-session" {
|
||||
regenerate (req: express.Request, fn: (err: any) => any): void;
|
||||
load (sid: string, fn: (err: any, session: Express.Session) => any): void;
|
||||
createSession (req: express.Request, sess: Express.Session): void;
|
||||
|
||||
get: (sid: string, callback: (err: any, session: Express.Session) => void) => void;
|
||||
set: (sid: string, session: Express.Session, callback: (err: any) => void) => void;
|
||||
destroy: (sid: string, callback: (err: any) => void) => void;
|
||||
all: (callback: (err: any, obj: { [sid: string]: Express.Session; }) => void) => void;
|
||||
length: (callback: (err: any, length: number) => void) => void;
|
||||
clear: (callback: (err: any) => void) => void;
|
||||
}
|
||||
|
||||
export class MemoryStore implements BaseMemoryStore {
|
||||
|
||||
Reference in New Issue
Block a user