default: {
    add: (
        organization: { id: string },
        group: { name: string; users: string[] },
    ) => Promise<IFrontNewGroup>;
    del: (group: { id: string }) => Promise<void>;
    update: (group: { id: string }, data: any[]) => Promise<void>;
    useGroups: (
        id?: string,
    ) => [
        IFrontGroups,
        {
            addOneGroup: (group: IFrontNewGroup) => Promise<void>;
            delOneGroup: (group: IFrontMutateGroupsItem) => Promise<void>;
            errorGroups: Error;
            loadingGroups: boolean;
            mutateOneGroup: (group: IFrontMutateGroupsItem) => Promise<void>;
        },
    ];
} = ...

Type declaration

  • add: (
        organization: { id: string },
        group: { name: string; users: string[] },
    ) => Promise<IFrontNewGroup>
  • del: (group: { id: string }) => Promise<void>
  • update: (group: { id: string }, data: any[]) => Promise<void>
  • useGroups: (
        id?: string,
    ) => [
        IFrontGroups,
        {
            addOneGroup: (group: IFrontNewGroup) => Promise<void>;
            delOneGroup: (group: IFrontMutateGroupsItem) => Promise<void>;
            errorGroups: Error;
            loadingGroups: boolean;
            mutateOneGroup: (group: IFrontMutateGroupsItem) => Promise<void>;
        },
    ]