default: { add: ( user: { id: string }, workspace: { name: string }, ) => Promise<INewWorkspace>; del: (workspace: { id: string }) => Promise<void>; get: <T extends TWorkspaceGet>( id: string, data: T, ) => Promise<undefined | IWorkspace<T>>; update: (workspace: { id: string }, data: any[]) => Promise<void>;} = ... Type declaration
add: (user: { id: string }, workspace: { name: string }) => Promise<INewWorkspace>
del: (workspace: { id: string }) => Promise<void>
get: <T extends TWorkspaceGet>(
id: string,
data: T,
) => Promise<undefined | IWorkspace<T>>
update: (workspace: { id: string }, data: any[]) => Promise<void>