mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-27 10:20:53 +00:00
cc010ddf2a
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;
|
|
}
|
|
}
|