tRAGar - v0.1.0
    Preparing search index...

    Interface FileBackend

    Minimal file I/O interface used by the OPFS and IndexedDB store backends. Exported so tests can inject a MemoryFileBackend without real browser APIs.

    interface FileBackend {
        exists(path: string): Promise<boolean>;
        read(path: string): Promise<Uint8Array<ArrayBufferLike> | null>;
        write(path: string, data: Uint8Array): Promise<void>;
    }
    Index

    Methods

    Methods

    • Parameters

      • path: string

      Returns Promise<boolean>

    • Parameters

      • path: string

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

    • Parameters

      • path: string
      • data: Uint8Array

      Returns Promise<void>