diff options
author | Florian Dold <florian@dold.me> | 2021-02-16 10:31:55 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-16 13:47:00 +0100 |
commit | d1f00aeaa26af6835ea3f47ac280b1e67d672fa2 (patch) | |
tree | 9a5a364f8a5eb1e038bca936d621c015dab53304 /packages/idb-bridge/src/util/validateKeyPath.ts | |
parent | d384bd5c62198f1160119e60776350109a8ca7d3 (diff) |
get IDB tests to pass again, add new one
Diffstat (limited to 'packages/idb-bridge/src/util/validateKeyPath.ts')
-rw-r--r-- | packages/idb-bridge/src/util/validateKeyPath.ts | 2 |
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; |