@honua/sdk-js
    Preparing search index...

    Interface IndexedDbOfflineRegionStoreOptions

    interface IndexedDbOfflineRegionStoreOptions {
        indexedDB?: IDBFactory;
        migrations?: readonly OfflineRegionSchemaMigrationV1[];
        name?: string;
        onRecovery?: (report: OfflineRegionStoreRecoveryV1) => void;
        stagingMaxAgeMs?: number;
    }
    Index

    Properties

    indexedDB?: IDBFactory

    Injectable for browser tests and hosts with an alternate IndexedDB factory.

    migrations?: readonly OfflineRegionSchemaMigrationV1[]

    Ladder applied to persisted region records on open. Defaults to OFFLINE_REGION_SCHEMA_MIGRATIONS.

    name?: string

    Defaults to honua-offline-regions. Names are origin-scoped by IndexedDB.

    onRecovery?: (report: OfflineRegionStoreRecoveryV1) => void

    Receives the schema and recovery outcome of every open. Must not throw.

    stagingMaxAgeMs?: number

    Maximum age of abandoned staged resources before a new store reclaims them.