Skip to content

Commit

Permalink
Update packages/eslint-plugin/tests/rules/no-misused-promises.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
  • Loading branch information
JoshuaKGoldberg and bradzacher committed Apr 22, 2022
1 parent db904ca commit 1e3af13
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -310,7 +310,7 @@ interface Props {
onEvent: (() => void) | (() => Promise<void>);
}
const Component: React.FC<Props> = () => null;
declare function Component(props: Props): any;
const _ = <Component onEvent={async () => {}} />;
`,
Expand Down

0 comments on commit 1e3af13

Please sign in to comment.