aboutsummaryrefslogtreecommitdiff
path: root/packages/idb-bridge/src/util/validateKeyPath.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/idb-bridge/src/util/validateKeyPath.ts')
-rw-r--r--packages/idb-bridge/src/util/validateKeyPath.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/idb-bridge/src/util/validateKeyPath.ts b/packages/idb-bridge/src/util/validateKeyPath.ts
index 8057172df..2beb3c468 100644
--- a/packages/idb-bridge/src/util/validateKeyPath.ts
+++ b/packages/idb-bridge/src/util/validateKeyPath.ts
@@ -17,7 +17,7 @@
import { IDBKeyPath } from "../idbtypes";
// http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-valid-key-path
-const validateKeyPath = (keyPath: IDBKeyPath, parent?: "array" | "string") => {
+const validateKeyPath = (keyPath: IDBKeyPath | IDBKeyPath[], parent?: "array" | "string") => {
// This doesn't make sense to me based on the spec, but it is needed to pass the W3C KeyPath tests (see same
// comment in extractKey)
let myKeyPath: IDBKeyPath | IDBKeyPath[] = keyPath;