Skip to content

Commit

Permalink
fix(types): declare correctly user in requests (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBunlon authored Jun 6, 2022
1 parent 5b0b59f commit 07de849
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 07de849

Please sign in to comment.