mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fix(express-session): remove faulty touch callback (#36203)
* fix(express-session): remove faulty `touch` callback * chore: fix test
This commit is contained in:
parent
9cf5c98aa8
commit
12293bdac8
2
types/express-session/index.d.ts
vendored
2
types/express-session/index.d.ts
vendored
@ -45,7 +45,7 @@ declare global {
|
||||
destroy(callback: (err: any) => void): void;
|
||||
reload(callback: (err: any) => void): void;
|
||||
save(callback: (err: any) => void): void;
|
||||
touch(callback: (err: any) => void): void;
|
||||
touch(): void;
|
||||
cookie: SessionCookie;
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ io.on('connection', (socket) => {
|
||||
socket.handshake.session!['sessionEntry'],
|
||||
socket.handshake.session!.anotherSessionEntry
|
||||
];
|
||||
socket.handshake.session!.touch(() => {});
|
||||
socket.handshake.session!.touch();
|
||||
socket.handshake.session!.regenerate(() => {});
|
||||
socket.handshake.session!.save(() => {});
|
||||
socket.handshake.session!.reload(() => {});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user