Variable defaultConst

    default: {
        add: ((user, workspace) => Promise<INewWorkspace>);
        del: ((workspace) => Promise<void>);
        get: (<T>(id, data) => Promise<undefined | IWorkspace<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>

          New workspace

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

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

            • id: string

          Returns Promise<void>

    • get: (<T>(id, data) => Promise<undefined | IWorkspace<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