Tanatloc documentation
    Preparing search index...

    Variable defaultConst

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

    Type Declaration

    • add: (user: { id: string }, workspace: { name: string }) => Promise<INewWorkspace>

      Add

    • del: (user: { id: string }, workspace: { id: string }) => Promise<void>

      Delete

    • get: <T extends TWorkspaceGet>(
          id: string,
          data: T,
      ) => Promise<IWorkspaceGet<T> | undefined>

      Get

    • getByUser: (user: { id: string }) => Promise<TWorkspace[]>

      Get by user

    • getWithData: <T extends TWorkspaceGet>(
          id: string,
          data: T,
      ) => Promise<IWorkspaceWithData<T> | undefined>

      Get with data

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

      Update