Skip to content

Commit

Permalink
Revert change typing
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Jan 2, 2025
1 parent 204997b commit 0839f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/lib/api/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export async function fetchRevokedWorkspace(
return new Ok(workspace);
}

export async function getUserWithWorkspaces<T extends boolean = false>(
export async function getUserWithWorkspaces<T extends boolean>(
user: UserResource,
populateExtensionConfig: T
populateExtensionConfig: T = false as T
): Promise<
T extends true ? UserTypeWithExtensionWorkspaces : UserTypeWithWorkspaces
> {
Expand Down

0 comments on commit 0839f66

Please sign in to comment.