Variable defaultConst

    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>)
        • (organization, group): Promise<IFrontNewGroup>
        • Add

          Parameters

          • organization: {
                id: string;
            }

            Organization

            • id: string
          • group: {
                name: string;
                users: string[];
            }

            Group

            • name: string
            • users: string[]

          Returns Promise<IFrontNewGroup>

          New group

    • del: ((group: {
          id: string;
      }) => Promise<void>)
        • (group): Promise<void>
        • Delete

          Parameters

          • group: {
                id: string;
            }

            Group

            • id: string

          Returns Promise<void>

    • update: ((group: {
          id: string;
      }, data: any[]) => Promise<void>)
        • (group, data): Promise<void>
        • Update

          Parameters

          • group: {
                id: string;
            }

            Group

            • id: string
          • data: any[]

            Data

          Returns 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>);
      }])

    Generated using TypeDoc and TypeDoc Airthium Plugin