Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"no-unnecessary-type-assertion" lint errors on useInfiniteQuery.ts and useSuspenseInfiniteQuery.ts #8620

Open
gs18004 opened this issue Feb 7, 2025 · 1 comment

Comments

@gs18004
Copy link

gs18004 commented Feb 7, 2025

Describe the bug

on useInfiniteQuery.ts and useSuspenseInfiniteQuery.ts, there is a linting error which says

This assertion is unnecessary since it does not change the type of the expression.

This should be fixed.

Your minimal, reproducible example

Steps to reproduce

  1. Open useInfiniteQuery.ts and useSuspenseInfiniteQuery.ts in your text editor.

Expected behavior

no lint error should be shown.

How often does this bug happen?

None

Screenshots or Videos

Image

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 14.6.1

Tanstack Query adapter

None

TanStack Query version

5.66.0

TypeScript version

No response

Additional context

No response

@gs18004
Copy link
Author

gs18004 commented Feb 7, 2025

I will make a PR for this one.

@gs18004 gs18004 changed the title This assertion is unnecessary since it does not change the type of the expression. on useSuspenseInfiniteQuery.ts This assertion is unnecessary since it does not change the type of the expression. on useSuspenseInfiniteQuery.ts and useInfiniteQuery.ts Feb 7, 2025
@gs18004 gs18004 changed the title This assertion is unnecessary since it does not change the type of the expression. on useSuspenseInfiniteQuery.ts and useInfiniteQuery.ts This assertion is unnecessary since it does not change the type of the expression. on useInfiniteQuery.ts and useSuspenseInfiniteQuery.ts Feb 7, 2025
@gs18004 gs18004 changed the title This assertion is unnecessary since it does not change the type of the expression. on useInfiniteQuery.ts and useSuspenseInfiniteQuery.ts "no-unnecessary-type-assertion" lint errors on useInfiniteQuery.ts and useSuspenseInfiniteQuery.ts Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant