Dotloom TypeScript API
    Preparing search index...

    Interface StorageAdapter

    Pluggable async storage (IndexedDB, OPFS, a server, cloud drives, …).

    interface StorageAdapter {
        id: string;
        list(): Promise<StoredFile[]>;
        meta(key: string): Promise<StoredMeta | null>;
        read(key: string): Promise<Uint8Array<ArrayBufferLike> | null>;
        remove(key: string): Promise<void>;
        write(key: string, bytes: Uint8Array, meta: StoredMeta): Promise<void>;
    }

    Implemented by

    Index
    id: string
    • Parameters

      • key: string

      Returns Promise<Uint8Array<ArrayBufferLike> | null>