From 4452984a24334e3b7afb60e3db9dc12db02d65ba Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 8 Feb 2021 15:23:44 +0100 Subject: idb-bridge: remove cyclic dependencies, rip out api extractor --- packages/idb-bridge/src/util/valueToKey.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'packages/idb-bridge/src/util/valueToKey.ts') diff --git a/packages/idb-bridge/src/util/valueToKey.ts b/packages/idb-bridge/src/util/valueToKey.ts index 5cf5b2b1b..c3661f9a1 100644 --- a/packages/idb-bridge/src/util/valueToKey.ts +++ b/packages/idb-bridge/src/util/valueToKey.ts @@ -14,11 +14,14 @@ permissions and limitations under the License. */ +import { IDBValidKey } from ".."; import { DataError } from "./errors"; -import { Key } from "./types"; // https://w3c.github.io/IndexedDB/#convert-a-value-to-a-input -function valueToKey(input: any, seen?: Set): Key | Key[] { +function valueToKey( + input: any, + seen?: Set, +): IDBValidKey | IDBValidKey[] { if (typeof input === "number") { if (isNaN(input)) { throw new DataError(); -- cgit v1.2.3