diff options
author | Florian Dold <florian@dold.me> | 2021-02-08 15:23:44 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-08 15:23:44 +0100 |
commit | 4452984a24334e3b7afb60e3db9dc12db02d65ba (patch) | |
tree | 50baf32f3a624d77346e38ba2bc573c063651ad2 /packages/idb-bridge/src/util/valueToKey.ts | |
parent | 883637d3f287e5026de5bcafb559ff3e6ba1f3bb (diff) | |
download | wallet-core-4452984a24334e3b7afb60e3db9dc12db02d65ba.tar.gz wallet-core-4452984a24334e3b7afb60e3db9dc12db02d65ba.tar.bz2 wallet-core-4452984a24334e3b7afb60e3db9dc12db02d65ba.zip |
idb-bridge: remove cyclic dependencies, rip out api extractor
Diffstat (limited to 'packages/idb-bridge/src/util/valueToKey.ts')
-rw-r--r-- | packages/idb-bridge/src/util/valueToKey.ts | 7 |
1 files changed, 5 insertions, 2 deletions
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<object>): Key | Key[] { +function valueToKey( + input: any, + seen?: Set<object>, +): IDBValidKey | IDBValidKey[] { if (typeof input === "number") { if (isNaN(input)) { throw new DataError(); |