Skip to content

Commit

Permalink
chore(lint): ignore eslint warning about unused typescript generic th…
Browse files Browse the repository at this point in the history
…at _is_ being used
  • Loading branch information
pcattori committed Aug 17, 2022
1 parent 642cf6d commit bed12e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/remix-react/__tests__/hook-types-test.tsx
Expand Up @@ -5,7 +5,9 @@ function isEqual<A, B>(
arg: A extends B ? (B extends A ? true : false) : false
): void {}

type LoaderData<T> = ReturnType<typeof useLoaderData<T>>
// not sure why `eslint` thinks the `T` generic is not used...
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type LoaderData<T> = ReturnType<typeof useLoaderData<T>>;

describe("useLoaderData", () => {
it("supports plain data type", () => {
Expand Down

0 comments on commit bed12e9

Please sign in to comment.