diff --git a/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts b/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts index 44703b84d00..518b7c1d6b5 100644 --- a/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts +++ b/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts @@ -310,7 +310,7 @@ interface Props { onEvent: (() => void) | (() => Promise); } -const Component: React.FC = () => null; +declare function Component(props: Props): any; const _ = {}} />; `,