mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
build(deps): update @types/express-session to 1.17.3
This commit is contained in:
12
server/types/express.d.ts
vendored
12
server/types/express.d.ts
vendored
@@ -4,10 +4,6 @@ import type { User } from '../entity/User';
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
export interface Session {
|
||||
userId?: number;
|
||||
}
|
||||
|
||||
export interface Request {
|
||||
user?: User;
|
||||
}
|
||||
@@ -19,3 +15,11 @@ declare global {
|
||||
next: NextFunction
|
||||
) => Promise<void | NextFunction> | void | NextFunction;
|
||||
}
|
||||
|
||||
// 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' {
|
||||
export interface SessionData {
|
||||
userId: number;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user