Interface IndexedDB

interface IndexedDB {
    name: "IndexedDB";
    options: {
        idbFactory: { required: false; type: "object" };
        storeName: { required: false; type: "string" };
    };
    create(
        options: IndexedDBOptions & Partial<SharedConfig>,
    ): Promise<AsyncMixin & StoreFS<IndexedDBStore>>;
    isAvailable(idbFactory?: IDBFactory): Promise<boolean>;
}

Hierarchy

  • _IndexedDB
    • IndexedDB

Properties

Methods

Properties

name: "IndexedDB" = 'IndexedDB'
options: {
    idbFactory: { required: false; type: "object" };
    storeName: { required: false; type: "string" };
} = ...

Methods

  • Parameters

    • idbFactory: IDBFactory = globalThis.indexedDB

    Returns Promise<boolean>