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<undefined | IWorkspaceGet<T>>;
        getByUser: (user: { id: string }) => Promise<TWorkspace[]>;
        getWithData: <T extends TWorkspaceGet>(
            id: string,
            data: T,
        ) => Promise<undefined | IWorkspaceWithData<T>>;
        update: (workspace: { id: string }, data: any[]) => Promise<void>;
    } = ...

    Type declaration

    • 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<undefined | IWorkspaceGet<T>>
    • getByUser: (user: { id: string }) => Promise<TWorkspace[]>
    • getWithData: <T extends TWorkspaceGet>(
          id: string,
          data: T,
      ) => Promise<undefined | IWorkspaceWithData<T>>
    • update: (workspace: { id: string }, data: any[]) => Promise<void>