mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
f3f0360a95
We add a custom User object into the request object. To be able to use that object in a strongly-typed situation, we need to tell TypeScript that it exists. Signed-off-by: David Mehren <git@herrmehren.de>
13 lines
259 B
TypeScript
13 lines
259 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { User} from '../../src/users/user.entity';
|
|
|
|
declare module 'express' {
|
|
export interface Request {
|
|
user?: User;
|
|
}
|
|
}
|