Skip to content

Commit

Permalink
Add passing exhaustive-deps test for type parameters in TypeScript (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and AndyPengc12 committed Apr 15, 2024
1 parent 4c3af43 commit ec8bf4b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7774,6 +7774,16 @@ const testsTypescript = {
}
`,
},
{
code: normalizeIndent`
function useMyThing<T>(): void {
useEffect(() => {
let foo: T;
console.log(foo);
}, []);
}
`,
},
],
invalid: [
{
Expand Down

0 comments on commit ec8bf4b

Please sign in to comment.