Variable defaultConst

    default: {
        add: ((user: {
            id: string;
        }, workspace: {
            name: string;
        }) => Promise<INewWorkspace>);
        del: ((workspace: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IWorkspace<T>>);
        update: ((workspace: {
            id: string;
        }, data: any[]) => Promise<void>);
    } = ...

    Type declaration

    • add: ((user: {
          id: string;
      }, workspace: {
          name: string;
      }) => 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: {
          id: string;
      }) => Promise<void>)
        • (workspace): Promise<void>
        • Delete

          Parameters

          • workspace: {
                id: string;
            }

            Workspace

            • id: string

          Returns Promise<void>

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

    Generated using TypeDoc and TypeDoc Airthium Plugin