Skip to content

Commit 4c22b57

Browse files
committed
refactor: update promiseOrValue type from any to MaybePromise<TData>
This commit modifies the type of `promiseOrValue` in `retryer.ts` from `any` to `MaybePromise<TData>`, aligning with the ongoing effort to standardize the use of `MaybePromise<T>` across the codebase.
1 parent c50170c commit 4c22b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-core/src/retryer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export function createRetryer<TData = unknown, TError = DefaultError>(
147147
return
148148
}
149149

150-
let promiseOrValue: any
150+
let promiseOrValue: MaybePromise<TData>
151151

152152
// we can re-use config.initialPromise on the first call of run()
153153
const initialPromise =

0 commit comments

Comments
 (0)