@valon-technologies/gestalt
    Preparing search index...

    Interface IndexedDB

    Fakeable client contract for IndexedDB-compatible storage.

    interface IndexedDB {
        close(): void;
        createObjectStore(
            name: string,
            schema?: ObjectStoreSchema,
        ): Promise<ObjectStore>;
        deleteObjectStore(name: string): Promise<void>;
        createIndex(store: string, index: IndexSchema): Promise<void>;
        deleteIndex(store: string, name: string): Promise<void>;
        objectStore(name: string): ObjectStore;
        transaction(
            stores: string[],
            mode?: TransactionMode,
            options?: TransactionOptions,
        ): Promise<Transaction>;
    }
    Index

    Methods

    • Returns void

    • Parameters

      • name: string

      Returns Promise<void>

    • Parameters

      Returns Promise<void>

    • Parameters

      • store: string
      • name: string

      Returns Promise<void>