retry-assert
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -8,2 +8,7 @@ # Changelog | ||
## 1.2.0 - 2024-02-28 | ||
### Changed | ||
- Typescript declaration change: RetryBuilder infers type from Promise type | ||
parameter. | ||
## 1.1.0 - 2023-12-06 | ||
@@ -10,0 +15,0 @@ ### Added |
{ | ||
"name": "retry-assert", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"author": "Nathan Jones", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -34,3 +34,3 @@ /** | ||
*/ | ||
declare function retry<T>(fn?: () => T): RetryBuilder<T>; | ||
declare function retry<T>(fn?: () => Promise<T> | T): RetryBuilder<T>; | ||
@@ -86,3 +86,3 @@ declare namespace retry { | ||
*/ | ||
fn<U>(fn: () => U): RetryBuilder<U>; | ||
fn<U>(fn: () => Promise<U> | U): RetryBuilder<U>; | ||
@@ -89,0 +89,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29958