Variable defaultConst

    default: {
        add: ((workspace: {
            name: string;
        }) => Promise<IFrontNewWorkspace>);
        del: ((workspace: {
            id: string;
        }) => Promise<void>);
        update: ((workspace: {
            id: string;
        }, data: any[]) => Promise<void>);
        useWorkspaces: (() => [IFrontWorkspaces, {
            addOneWorkspace: ((workspace: IFrontNewWorkspace) => Promise<void>);
            delOneWorkspace: ((workspace: IFrontMutateWorkspacesItem) => Promise<void>);
            errorWorkspaces: Error;
            loadingWorkspaces: boolean;
            mutateOneWorkspace: ((workspace: IFrontMutateWorkspacesItem) => Promise<void>);
        }]);
    } = ...

    Type declaration

    • add: ((workspace: {
          name: string;
      }) => Promise<IFrontNewWorkspace>)
    • del: ((workspace: {
          id: string;
      }) => Promise<void>)
        • (workspace): Promise<void>
        • Delete

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

            • id: string

          Returns Promise<void>

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

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    • useWorkspaces: (() => [IFrontWorkspaces, {
          addOneWorkspace: ((workspace: IFrontNewWorkspace) => Promise<void>);
          delOneWorkspace: ((workspace: IFrontMutateWorkspacesItem) => Promise<void>);
          errorWorkspaces: Error;
          loadingWorkspaces: boolean;
          mutateOneWorkspace: ((workspace: IFrontMutateWorkspacesItem) => Promise<void>);
      }])

    Generated using TypeDoc and TypeDoc Airthium Plugin