Skip to content

Commit c76527d

Browse files
committed
Add missing type import in retry.test-d.ts
1 parent f6d812c commit c76527d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/toolkit/src/query/tests/retry.test-d.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
describe('RetryOptions type tests', () => {
1+
import type { RetryOptions } from '@internal/query/retry'
2+
3+
describe('type tests', () => {
24
test('RetryOptions only accepts one of maxRetries or retryCondition', () => {
3-
// @ts-expect-error Should complain if both exist at once
4-
const ro: RetryOptions = {
5+
// Should complain if both `maxRetries` and `retryCondition` exist at once
6+
expectTypeOf<RetryOptions>().not.toMatchTypeOf({
57
maxRetries: 5,
68
retryCondition: () => false,
7-
}
9+
})
810
})
911
})
1012

0 commit comments

Comments
 (0)