default: { add: ( organization: { id: string }, group: { name: string; users: string[] }, ) => Promise<INewGroup>; del: (group: { id: string }) => Promise<void>; get: <T extends TGroupGet>( id: string, data: T, ) => Promise<undefined | IGroupGet<T>>; getAll: <T extends TGroupGet>(data: T) => Promise<IGroupWithData<T>[]>; getByOrganization: <T extends TGroupGet>( id: string, data: T, ) => Promise<IGroupWithData<T>[]>; getWithData: <T extends TGroupGet>( id: string, data: T, ) => Promise<undefined | IGroupWithData<T>>; update: (group: { id: string }, data: any[]) => Promise<void>;} = ... Type declaration
add: (
organization: { id: string },
group: { name: string; users: string[] },
) => Promise<INewGroup>
del: (group: { id: string }) => Promise<void>
get: <T extends TGroupGet>(id: string, data: T) => Promise<undefined | IGroupGet<T>>
getByOrganization: <T extends TGroupGet>(id: string, data: T) => Promise<IGroupWithData<T>[]>
getWithData: <T extends TGroupGet>(
id: string,
data: T,
) => Promise<undefined | IGroupWithData<T>>
update: (group: { id: string }, data: any[]) => Promise<void>