Skip to content

@tanstack/vue-query type lost #4366

@ModyQyW

Description

@ModyQyW

Describe the bug

@tanstack/vue-query@4.13.2 lost some types. @tanstack/vue-query@4.12.0 is Fine.

image

image

image

image

Your minimal, reproducible example

https://github.com/ModyQyW/tanstack-vue-query-type-lost

Steps to reproduce

  1. pnpm install @tanstack/vue-query@4.13.2
  2. reload editor or ide, open src/main.ts and check queryKey and variables types
  3. pnpm install @tanstack/vue-query@4.12.0
  4. reload editor or ide, open src/main.ts and check queryKey and variables types

Expected behavior

Should infer correct types, not any.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOs Monterey 12.6, VSCode 1.72.2

react-query version

@tanstack/vue-query@4.13.2

TypeScript version

4.8.4

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions