Skip to content

Commit bee3f8a

Browse files
colemarsmsutkowski
andauthored
export RetryOptions from interface retry.ts (#1751)
Co-authored-by: Matt Sutkowski <[email protected]>
1 parent 4441eef commit bee3f8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/toolkit/src/query/retry.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function defaultBackoff(attempt: number = 0, maxRetries: number = 5) {
2323
)
2424
}
2525

26-
interface StaggerOptions {
26+
export interface RetryOptions {
2727
/**
2828
* How many times the query will be retried (default: 5)
2929
*/
@@ -42,8 +42,8 @@ function fail(e: any): never {
4242

4343
const retryWithBackoff: BaseQueryEnhancer<
4444
unknown,
45-
StaggerOptions,
46-
StaggerOptions | void
45+
RetryOptions,
46+
RetryOptions | void
4747
> = (baseQuery, defaultOptions) => async (args, api, extraOptions) => {
4848
const options = {
4949
maxRetries: 5,

0 commit comments

Comments
 (0)