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 Dec 11, 2020
1 parent cdfde3a commit 639b21f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7580,6 +7580,15 @@ const testsTypescript = {
}
`,
},
{
code: normalizeIndent`
function useMyThing<T>(): void {
useEffect(() => {
let foo: T;
}, []);
}
`,
},
],
invalid: [
{
Expand Down

0 comments on commit 639b21f

Please sign in to comment.