Skip to content

Commit a9c8def

Browse files
committed
Fix TS types
1 parent 87c474b commit a9c8def

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

site/src/api/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export interface UserResponse {
2424
readonly created_at: string
2525
readonly status: "active" | "suspended"
2626
readonly organization_ids: string[]
27+
readonly roles: { name: string; display_name: string }[]
2728
}
2829

2930
/**

site/src/testHelpers/entities.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const MockUser: UserResponse = {
2828
created_at: "",
2929
status: "active",
3030
organization_ids: ["fc0774ce-cc9e-48d4-80ae-88f7a4d4a8b0"],
31+
roles: [],
3132
}
3233

3334
export const MockUser2: UserResponse = {
@@ -37,6 +38,7 @@ export const MockUser2: UserResponse = {
3738
created_at: "",
3839
status: "active",
3940
organization_ids: ["fc0774ce-cc9e-48d4-80ae-88f7a4d4a8b0"],
41+
roles: [],
4042
}
4143

4244
export const MockOrganization: Organization = {

0 commit comments

Comments
 (0)