From d1f00aeaa26af6835ea3f47ac280b1e67d672fa2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 16 Feb 2021 10:31:55 +0100 Subject: get IDB tests to pass again, add new one --- packages/idb-bridge/src/util/validateKeyPath.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/idb-bridge/src/util/validateKeyPath.ts') 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; -- cgit v1.2.3