mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00

* feat(api): settings system Also includes /auth/me endpoint for ticket ch76 and OpenAPI 3.0 compatibility for ch77 * refactor(api): remove unused imports
22 lines
503 B
TypeScript
22 lines
503 B
TypeScript
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
import type { NextFunction, Request, Response } from 'express';
|
|
import type { User } from '../entity/User';
|
|
|
|
declare global {
|
|
namespace Express {
|
|
export interface Session {
|
|
userId?: number;
|
|
}
|
|
|
|
export interface Request {
|
|
user?: User;
|
|
}
|
|
}
|
|
|
|
export type Middleware = <ParamsDictionary, any, any>(
|
|
req: Request,
|
|
res: Response,
|
|
next: NextFunction
|
|
) => Promise<void | NextFunction> | void | NextFunction;
|
|
}
|