@verifiedinc-public/shared-ui-elements 5.1.0 → 5.1.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";async function n(r){try{return[await r,null]}catch(a){return[null,a]}}export{n as wrapPromise};
@@ -1,8 +1,8 @@
1
- type WrappedPromiseEitherResponse<D, Error> = [Awaited<D>, null] | [null, Error];
1
+ type WrappedPromiseEitherResponse<D, E> = [Awaited<D>, null] | [null, E];
2
2
  /**
3
3
  * Wrap a promise to return an array with the data and the error.
4
4
  * @param promise The promise to wrap
5
5
  * @returns
6
6
  */
7
- export declare function wrapPromise<D, Error = any>(promise: PromiseLike<D>): Promise<WrappedPromiseEitherResponse<D, Error>>;
7
+ export declare function wrapPromise<D, E = object>(promise: PromiseLike<D>): Promise<WrappedPromiseEitherResponse<D, E>>;
8
8
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "5.1.0",
3
+ "version": "5.1.2-beta.0",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],