MCPcopy
hub / github.com/JetBrains/ring-ui / StorageInterface

Interface StorageInterface

src/storage/storage.ts:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7}
8
9export interface StorageInterface {
10 get<T>(name: string): Promise<T | null>;
11 set<T>(name: string, value: T | null): Promise<T | null>;
12 remove(name: string): Promise<void>;
13 each<R>(callback: (item: string, value: unknown) => R | Promise<R>): Promise<R[]>;
14 on<T>(name: string, callback: (value: T | null) => void): () => void;
15}
16
17export interface StorageClass {
18 new (config?: StorageConfig | undefined): StorageInterface;

Callers 25

initFunction · 0.65
testStorageFunction · 0.65
storage.test.tsFile · 0.65
initFunction · 0.65
testStorageFunction · 0.65
testStorageEventsFunction · 0.65
storage.test.tsFile · 0.65
cleanStatesMethod · 0.65
wipeTokenMethod · 0.65
wipeCachedCurrentUserMethod · 0.65
onBackendDownFunction · 0.65
removeListenerMethod · 0.65

Implementers 1

LocalStoragesrc/storage/storage-local.ts

Calls

no outgoing calls

Tested by

no test coverage detected