MCPcopy Create free account
hub / github.com/experdot/pointer / IRepository

Interface IRepository

src/renderer/src/persistence/interfaces/base.ts:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 * @template TKey Key type (default: string)
30 */
31export interface IRepository<T, TKey = string> {
32 getAll(): Promise<T[]>
33 getById(id: TKey): Promise<T | undefined>
34 put(item: T): Promise<void>
35 putBatch(items: T[]): Promise<void>
36 delete(id: TKey): Promise<void>
37 deleteBatch(ids: TKey[]): Promise<void>
38 clear(): Promise<void>
39}
40
41/**
42 * Singleton value repository interface

Callers 28

buildFolderPathFunction · 0.65
initCustomWorkspaceFunction · 0.65
accountStore.tsFile · 0.65
getSettingsQueueFunction · 0.65
getLayoutQueueFunction · 0.65
getTabsQueueFunction · 0.65
getPageFileQueueFunction · 0.65
workspaceStore.tsFile · 0.65
putBatchFunction · 0.65
getFoldersQueueFunction · 0.65
findPageFileFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected