mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +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:
committed by
Daniel Rosenwasser
parent
9cf5c98aa8
commit
12293bdac8
Vendored
+1
-1
@@ -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(() => {});
|
||||
|
||||
Reference in New Issue
Block a user