wrap-request
Advanced tools
+7
-0
@@ -5,2 +5,9 @@ # Changelog | ||
| ### [7.0.6](https://github.com/misantronic/wrap-request/compare/v7.0.5...v7.0.6) (2023-06-09) | ||
| ### Bug Fixes | ||
| * update return-type of `didFetch` ([eff137a](https://github.com/misantronic/wrap-request/commit/eff137a0d296e4e2d975e420b3c7b77bd855e4af)) | ||
| ### [7.0.5](https://github.com/misantronic/wrap-request/compare/v7.0.4...v7.0.5) (2023-06-05) | ||
@@ -7,0 +14,0 @@ |
+1
-1
@@ -67,3 +67,3 @@ export declare type WrapRequestState = 'loading' | 'fetched' | 'error'; | ||
| reset(value?: $, params?: P): void; | ||
| didFetch<T = any>(cb: ($: RESULT<$$, DD>) => T): T | null; | ||
| didFetch<T = any>(cb: ($: $$) => T): T | null; | ||
| when(): Promise<$$>; | ||
@@ -70,0 +70,0 @@ /** |
+1
-1
| { | ||
| "name": "wrap-request", | ||
| "version": "7.0.5", | ||
| "version": "7.0.6", | ||
| "description": "a request wrapper for asynchronous operations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+2
-2
@@ -291,5 +291,5 @@ export type WrapRequestState = 'loading' | 'fetched' | 'error'; | ||
| public didFetch<T = any>(cb: ($: RESULT<$$, DD>) => T) { | ||
| public didFetch<T = any>(cb: ($: $$) => T) { | ||
| if (this.fetched) { | ||
| return cb(this.$); | ||
| return cb(this.$ as $$); | ||
| } | ||
@@ -296,0 +296,0 @@ |
68160
0.34%