Skip to content

Commit 4e33ef5

Browse files
committed
fix(utils): retryOnRet type
1 parent bbc3726 commit 4e33ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/common/retry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface RetryOnRetOptions {
77
}
88

99
// todo: if no retryMax, use polling
10-
export async function retryOnRet<T extends Fn<any>>(fn: T, successCondition: (result: ReturnType<T>) => Awaitable<boolean>, options: RetryOnRetOptions = {}) {
10+
export async function retryOnRet<T extends Fn<any>>(fn: T, successCondition: (result: Awaited<ReturnType<T>>) => Awaitable<boolean>, options: RetryOnRetOptions = {}) {
1111
const { retryMax, delay = 1000 } = options
1212
const errMsgRetNull = 'Returned value doesn\'t meet success condition'
1313
if (!retryMax) {

0 commit comments

Comments
 (0)