Variable defaultConst

    default: {
        add: ((user, workspace) => Promise<INewWorkspace>);
        del: ((user, workspace) => Promise<void>);
        get: (<T>(id, data) => Promise<undefined | IWorkspaceGet<T>>);
        getByUser: ((user) => Promise<TWorkspace[]>);
        getWithData: (<T>(id, data) => Promise<undefined | IWorkspaceWithData<T>>);
        update: ((workspace, data) => Promise<void>);
    } = ...

    Type declaration

    • add: ((user, workspace) => Promise<INewWorkspace>)
        • (user, workspace): Promise<INewWorkspace>
        • Add

          Parameters

          • user: {
                id: string;
            }

            User

            • id: string
          • workspace: {
                name: string;
            }

            Workspace

            • name: string

          Returns Promise<INewWorkspace>

          Workspace

    • del: ((user, workspace) => Promise<void>)
        • (user, workspace): Promise<void>
        • Delete

          Parameters

          • user: {
                id: string;
            }

            User

            • id: string
          • workspace: {
                id: string;
            }

            Workspace

            • id: string

          Returns Promise<void>

    • get: (<T>(id, data) => Promise<undefined | IWorkspaceGet<T>>)
    • getByUser: ((user) => Promise<TWorkspace[]>)
        • (user): Promise<TWorkspace[]>
        • Get by user

          Parameters

          • user: {
                id: string;
            }

            User

            • id: string

          Returns Promise<TWorkspace[]>

          Workspaces

    • getWithData: (<T>(id, data) => Promise<undefined | IWorkspaceWithData<T>>)
    • update: ((workspace, data) => Promise<void>)
        • (workspace, data): Promise<void>
        • Update

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin