Skip to content

@types/node types leak into browser/client projects in version 5.91.0 #10294

Description

@ziloen

Describe the bug

After upgrading to the latest version of @tanstack/react-query, Node.js types appear to be leaking into browser/client-side TypeScript projects.

Your minimal, reproducible example

https://stackblitz.com/edit/vitejs-vite-mkibrcm9?file=src%2Fmain.tsx&view=editor

Steps to reproduce

import { QueryClient, QueryClientProvider } from '@tanstack/react-query'

const timer = setTimeout(() => {}, 0)
//    ^? NodeJS.Timeout

Expected behavior

const timer = setTimeout(() => {}, 0)
//    ^? number

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

@tanstack/[email protected]

Tanstack Query adapter

react-query

TanStack Query version

5.91.0

TypeScript version

5.9.3

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions