@appliedblockchain/assert-combinators
Advanced tools
Comparing version 5.1.0 to 5.1.1
# Changelog | ||
## [v5.1.1](../../compare/v5.1.0...v5.1.1) (2022-03-28) | ||
* Fixing result type in eventually. | ||
* Updating changelog. | ||
## [v5.1.0](../../compare/v5.0.0...v5.1.0) (2022-03-28) | ||
@@ -4,0 +9,0 @@ |
@@ -1,5 +0,5 @@ | ||
declare const eventually: <T>(assert: (result: T) => T, poll: () => Promise<T>, { retries, delay }?: { | ||
declare const eventually: <T, U>(assert: (result: T) => U, poll: () => Promise<T>, { retries, delay }?: { | ||
retries?: number | undefined; | ||
delay?: number | undefined; | ||
}) => Promise<T>; | ||
}) => Promise<U>; | ||
export default eventually; |
@@ -1,5 +0,5 @@ | ||
declare const eventually: <T>(assert: (result: T) => T, poll: () => Promise<T>, { retries, delay }?: { | ||
declare const eventually: <T, U>(assert: (result: T) => U, poll: () => Promise<T>, { retries, delay }?: { | ||
retries?: number | undefined; | ||
delay?: number | undefined; | ||
}) => Promise<T>; | ||
}) => Promise<U>; | ||
export default eventually; |
{ | ||
"name": "@appliedblockchain/assert-combinators", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Assertion combinators.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
const eventually = | ||
async <T>(assert: (result: T) => T, poll: () => Promise<T>, { | ||
async <T, U>(assert: (result: T) => U, poll: () => Promise<T>, { | ||
retries = 10, | ||
@@ -8,3 +8,3 @@ delay = 1000 | ||
delay?: number | ||
} = {}): Promise<T> => { | ||
} = {}): Promise<U> => { | ||
for (let retry = 1; retry <= retries; retry++) { | ||
@@ -11,0 +11,0 @@ const before = Date.now() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
171029