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 | IGroup<T>>; getAll: <T extends TGroupGet>(data: T) => Promise<IGroup<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 | IGroup<T>>
getAll: <T extends TGroupGet>(data: T) => Promise<IGroup<T>[]>
update: (group: { id: string }, data: any[]) => Promise<void>