default: {
    accept: (organization: { id: string }) => Promise<void>;
    add: (organization: { name: string }) => Promise<IFrontNewOrganization>;
    decline: (organization: { id: string }) => Promise<void>;
    del: (organization: { id: string }) => Promise<void>;
    quit: (organization: { id: string }) => Promise<void>;
    update: (organization: { id: string }, data: any[]) => Promise<void>;
    useOrganizations: () => [
        IFrontOrganizations,
        {
            addOneOrganization: (
                organization: IFrontNewOrganization,
            ) => Promise<void>;
            delOneOrganization: (
                organization: IFrontMutateOrganizationsItem,
            ) => Promise<void>;
            errorOrganizations: Error;
            loadingOrganizations: boolean;
            mutateOneOrganization: (
                organization: IFrontMutateOrganizationsItem,
            ) => Promise<void>;
        },
    ];
} = ...

Type declaration

  • accept: (organization: { id: string }) => Promise<void>
  • add: (organization: { name: string }) => Promise<IFrontNewOrganization>
  • decline: (organization: { id: string }) => Promise<void>
  • del: (organization: { id: string }) => Promise<void>
  • quit: (organization: { id: string }) => Promise<void>
  • update: (organization: { id: string }, data: any[]) => Promise<void>
  • useOrganizations: () => [
        IFrontOrganizations,
        {
            addOneOrganization: (
                organization: IFrontNewOrganization,
            ) => Promise<void>;
            delOneOrganization: (
                organization: IFrontMutateOrganizationsItem,
            ) => Promise<void>;
            errorOrganizations: Error;
            loadingOrganizations: boolean;
            mutateOneOrganization: (
                organization: IFrontMutateOrganizationsItem,
            ) => Promise<void>;
        },
    ]