mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
![renovate[bot]](/assets/img/avatar_default.png)
* chore(deps): update all non-major dependencies * fix: correct breaking changes Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sct <ryan@sct.dev>
20 lines
496 B
TypeScript
20 lines
496 B
TypeScript
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
import type { User } from '@server/entity/User';
|
|
import type { NextFunction, Request, Response } from 'express';
|
|
import 'express-session';
|
|
|
|
declare global {
|
|
namespace Express {
|
|
export interface Request {
|
|
user?: User;
|
|
locale?: string;
|
|
}
|
|
}
|
|
|
|
export type Middleware = <ParamsDictionary, any, any>(
|
|
req: Request,
|
|
res: Response,
|
|
next: NextFunction
|
|
) => Promise<void | NextFunction> | void | NextFunction;
|
|
}
|