Tanatloc documentation
    Preparing search index...

    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 extends TProjectGet>(
            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>
    • del: (project: { id: string }) => Promise<void>
    • get: <T extends TProjectGet>(id: string, data: T) => Promise<undefined | IProject<T>>
    • update: (project: { id: string }, data: any[]) => Promise<void>