From 07de849edc8ac7b2fd60da7809e3e48c16ff8b94 Mon Sep 17 00:00:00 2001 From: SteveBunlon Date: Mon, 6 Jun 2022 15:59:52 +0200 Subject: [PATCH] fix(types): declare correctly user in requests (#968) --- types/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index f706c7cf..e13094b4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -29,8 +29,21 @@ export interface DatabaseConfiguration { export function ensureAuthenticated(request: Request, response: Response, next: NextFunction): void; +export interface UserTag { + key: string, + value: string, +} + export interface User { + email: string, + firstName: string, + lastName: string, + team: string, + role: string, + tags: UserTag[], renderingId: number; + iat: number, + exp: number, } export interface ForestRequest extends Request {