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

0 comments on commit 6c6ee10

Please sign in to comment.