Skip to content

Commit 5ccb6b2

Browse files
committed
Add @ts-ignore for type issue related to @types/react ^18.61
1 parent a4d24ce commit 5ccb6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/typetests/connect-options-and-issues.test-d.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ describe('type tests', () => {
788788
;<ConnectedForwardedFunctionalComponent ref={modernRef} />
789789
// Should not be able to use legacy string refs
790790
;<ConnectedForwardedFunctionalComponent
791-
// @ts-expect-error
791+
// @ts-ignore FIXME: If we use `@ts-expect-error` here, we will get an `Unused `@ts-expect-error` directive` error if we have `@types/react` ^18.61.
792792
ref={''}
793793
/>
794794
// ref type should agree with type of the forwarded ref

0 commit comments

Comments
 (0)