You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
285 B
10 lines
285 B
1 year ago
|
import 'express-session';
|
||
|
|
||
|
// Declaration merging to apply our own types to SessionData
|
||
|
// See: (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/express-session/index.d.ts#L23)
|
||
|
declare module 'express-session' {
|
||
|
interface SessionData {
|
||
|
userId: number;
|
||
|
}
|
||
|
}
|