UNPKG

matrix-js-sdk

Version:
10 lines (9 loc) 405 B
/** * Check if an IndexedDB database exists. The only way to do so is to try opening it, so * we do that and then delete it did not exist before. * * @param {Object} indexedDB The `indexedDB` interface * @param {string} dbName The database name to test for * @returns {boolean} Whether the database exists */ export declare function exists(indexedDB: IDBFactory, dbName: string): Promise<boolean>;