default: { add: ( user: { id: string }, workspace: { id: string }, project: { description?: string; title: string }, ) => Promise<INewProject>; archive: (project: { id: string }) => Promise<ReadStream>; copy: ( user: { id: string }, workspace: { id: string }, project: { id: string }, ) => Promise<undefined | INewProject>; del: (workspace: { id: string }, project: { id: string }) => Promise<void>; deleteArchiveFile: (project: { id: string }) => Promise<void>; get: <T extends TProjectGet>( id: string, data: T, ) => Promise<undefined | IProjectGet<T>>; getWithData: <T extends TProjectGet>( id: string, data: T, ) => Promise<undefined | IProjectWithData<T>>; unarchiveFromFile: ( project: { id: string }, buffer: Buffer, ) => Promise<void>; unarchiveFromServer: (project: { id: string }) => Promise<void>; update: (project: { id: string }, data: any[]) => Promise<void>;} = ... Type declaration
add: (
user: { id: string },
workspace: { id: string },
project: { description?: string; title: string },
) => Promise<INewProject>
archive: (project: { id: string }) => Promise<ReadStream>
copy: (
user: { id: string },
workspace: { id: string },
project: { id: string },
) => Promise<undefined | INewProject>
del: (workspace: { id: string }, project: { id: string }) => Promise<void>
deleteArchiveFile: (project: { id: string }) => Promise<void>
get: <T extends TProjectGet>(
id: string,
data: T,
) => Promise<undefined | IProjectGet<T>>
getWithData: <T extends TProjectGet>(
id: string,
data: T,
) => Promise<undefined | IProjectWithData<T>>
unarchiveFromFile: (project: { id: string }, buffer: Buffer) => Promise<void>
unarchiveFromServer: (project: { id: string }) => Promise<void>
update: (project: { id: string }, data: any[]) => Promise<void>