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/injectKey.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/injectKey.ts')
-rw-r--r-- | packages/idb-bridge/src/util/injectKey.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/idb-bridge/src/util/injectKey.ts b/packages/idb-bridge/src/util/injectKey.ts index 38add33bd..678f42d28 100644 --- a/packages/idb-bridge/src/util/injectKey.ts +++ b/packages/idb-bridge/src/util/injectKey.ts @@ -15,12 +15,14 @@ permissions and limitations under the License. */ -import { KeyPath, Value, Key } from "./types"; -import canInjectKey from "./canInjectKey"; -import { DataError } from "./errors"; +import { IDBKeyPath, IDBValidKey } from "../idbtypes"; import structuredClone from "./structuredClone"; -export function injectKey(keyPath: KeyPath, value: Value, key: Key): Value { +export function injectKey( + keyPath: IDBKeyPath, + value: any, + key: IDBValidKey, +): any { if (Array.isArray(keyPath)) { // tslint:disable-next-line max-line-length throw new Error( |