diff options
author | Florian Dold <florian@dold.me> | 2021-02-16 11:34:50 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-02-16 13:47:01 +0100 |
commit | db59275b6b43f8fa7f36899ae81cb7139a2e80cb (patch) | |
tree | 66ef429005a0ab239a212c39ad4501b29f727f97 /packages/idb-bridge/src/util/openPromise.ts | |
parent | d1f00aeaa26af6835ea3f47ac280b1e67d672fa2 (diff) | |
download | wallet-core-db59275b6b43f8fa7f36899ae81cb7139a2e80cb.tar.xz |
add more tests and fix various issues
Diffstat (limited to 'packages/idb-bridge/src/util/openPromise.ts')
-rw-r--r-- | packages/idb-bridge/src/util/openPromise.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/idb-bridge/src/util/openPromise.ts b/packages/idb-bridge/src/util/openPromise.ts index 915060deb..395d69e7b 100644 --- a/packages/idb-bridge/src/util/openPromise.ts +++ b/packages/idb-bridge/src/util/openPromise.ts @@ -14,7 +14,7 @@ permissions and limitations under the License. */ -function openPromise<T>(): { +export function openPromise<T>(): { promise: Promise<T>; resolve: (v?: T | PromiseLike<T>) => void; reject: (err?: any) => void; @@ -34,5 +34,3 @@ function openPromise<T>(): { return { promise, resolve, reject }; } - -export default openPromise; |