Skip to content

Commit 9434ce2

Browse files
authored
fix(types): declare correctly user in requests (#870)
1 parent f7bde1f commit 9434ce2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

types/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,21 @@ export interface SmartActionChangeHookRequest extends ForestRequest {
9696

9797
export function ensureAuthenticated(request: Request, response: Response, next: NextFunction): void;
9898

99+
export interface UserTag {
100+
key: string,
101+
value: string,
102+
}
103+
99104
export interface User {
105+
email: string,
106+
firstName: string,
107+
lastName: string,
108+
team: string,
109+
role: string,
110+
tags: UserTag[],
100111
renderingId: number;
112+
iat: number,
113+
exp: number,
101114
}
102115

103116
// Everything related to Forest constants

0 commit comments

Comments
 (0)