mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 08:24:27 +00:00
Run npm lint:fix
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user