Variable defaultConst

    default: {
        add: ((user: {
            id: string;
        }, workspace: {
            id: string;
        }, project: {
            description?: string;
            title: string;
        }) => Promise<INewProject>);
        del: ((project: {
            id: string;
        }) => Promise<void>);
        get: (<T>(id: string, data: T) => Promise<undefined | IProject<T>>);
        update: ((project: {
            id: string;
        }, data: any[]) => Promise<void>);
    } = ...

    Type declaration

    • add: ((user: {
          id: string;
      }, workspace: {
          id: string;
      }, project: {
          description?: string;
          title: string;
      }) => Promise<INewProject>)
        • (user, workspace, project): Promise<INewProject>
        • Add

          Parameters

          • user: {
                id: string;
            }

            User

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

            Workspace

            • id: string
          • project: {
                description?: string;
                title: string;
            }

            Project

            • Optionaldescription?: string
            • title: string

          Returns Promise<INewProject>

          New project

    • del: ((project: {
          id: string;
      }) => Promise<void>)
        • (project): Promise<void>
        • Delete

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string

          Returns Promise<void>

    • get: (<T>(id: string, data: T) => Promise<undefined | IProject<T>>)
        • <T>(id, data): Promise<undefined | IProject<T>>
        • Get

          Type Parameters

          Parameters

          • id: string

            Id

          • data: T

            Data

          Returns Promise<undefined | IProject<T>>

          Project

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

          Parameters

          • project: {
                id: string;
            }

            Project

            • id: string
          • data: any[]

            Data

          Returns Promise<void>

    Generated using TypeDoc and TypeDoc Airthium Plugin