Run npm lint:fix

This commit is contained in:
2025-05-18 16:57:48 +02:00
parent 16fbbec992
commit 2f181d0f7f
34 changed files with 85 additions and 68 deletions

View File

@@ -1,6 +1,7 @@
import { API_BASE_URL } from '@/types/authApi';
import { apiCall } from './api';
import { isWorkspace, Workspace } from '@/types/workspace';
import type { Workspace } from '@/types/workspace';
import { isWorkspace } from '@/types/workspace';
/**
* listWorkspaces fetches the list of workspaces
@@ -17,7 +18,7 @@ export const listWorkspaces = async (): Promise<Workspace[]> => {
if (!isWorkspace(workspace)) {
throw new Error('Invalid workspace object received from API');
}
return workspace as Workspace;
return workspace;
});
};
@@ -39,7 +40,7 @@ export const createWorkspace = async (name: string): Promise<Workspace> => {
if (!isWorkspace(data)) {
throw new Error('Invalid workspace object received from API');
}
return data as Workspace;
return data;
};
/**