MCPcopy
hub / github.com/OpenCut-app/OpenCut / StorageAdapter

Interface StorageAdapter

apps/web/src/services/storage/types.ts:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import type { TScene } from "@/lib/timeline";
8
9export interface StorageAdapter<T> {
10 get(key: string): Promise<T | null>;
11 set(key: string, value: T): Promise<void>;
12 remove(key: string): Promise<void>;
13 list(): Promise<string[]>;
14 clear(): Promise<void>;
15}
16
17export interface MediaAssetData {
18 id: string;

Callers 35

useElementRegistryFunction · 0.65
SectionFunction · 0.65
SectionFunction · 0.65
GraphicTabFunction · 0.65
StrokeSectionFunction · 0.65
MaskItemFunction · 0.65
EffectSectionFunction · 0.65
getKeyframeIndicatorsFunction · 0.65
useElementRegistryFunction · 0.65
toggleFunction · 0.65
toggleFunction · 0.65
getKeyframeIndicatorsFunction · 0.65

Implementers 2

IndexedDBAdapterapps/web/src/services/storage/indexedd
OPFSAdapterapps/web/src/services/storage/opfs-ada

Calls

no outgoing calls

Tested by

no test coverage detected