Skip to content

Commit

Permalink
exhaustive-deps: Add passing test for generic type arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jul 2, 2022
1 parent 4cd788a commit 16dffb2
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ const tests = {
}, 1000);
return () => clearInterval(id);
}, [setCount]);
return <h1>{count}</h1>;
}
`,
Expand Down Expand Up @@ -7704,6 +7704,15 @@ const testsTypescript = {
}
`,
},
{
code: normalizeIndent`
function useMyThing<T>(): void {
useEffect(() => {
let foo: T;
}, []);
}
`,
},
],
invalid: [
{
Expand Down

0 comments on commit 16dffb2

Please sign in to comment.