summaryrefslogtreecommitdiff
path: root/includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts')
-rw-r--r--includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts
new file mode 100644
index 0000000..dd5a966
--- /dev/null
+++ b/includes/external/matrix/node_modules/matrix-js-sdk/lib/indexeddb-helpers.d.ts
@@ -0,0 +1,10 @@
+/**
+ * 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 indexedDB - The `indexedDB` interface
+ * @param dbName - The database name to test for
+ * @returns Whether the database exists
+ */
+export declare function exists(indexedDB: IDBFactory, dbName: string): Promise<boolean>;
+//# sourceMappingURL=indexeddb-helpers.d.ts.map \ No newline at end of file