Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

README.md

14 lines846 Bytes

TanStack React Query NodeNext Integration

Checks that @tanstack/react-query resolves and emits declarations under moduleResolution: "nodenext" from both ESM and CommonJS files.

What it checks

  • src/hooks.ts (ESM, since package.json sets "type": "module") and src/hooks.cts (CommonJS) both export a hook that calls useQuery.
  • tsconfig.json sets module and moduleResolution to nodenext with declaration and emitDeclarationOnly, so the declarations for both files are emitted to dist/.
  • The check runs with TypeScript 6, TypeScript 7.0, and TypeScript 7.1 (dev build) from the root node_modules.
  • CI runs the test:types script, which runs test:types:ts6, test:types:ts7, and test:types:ts71.

To run it from the repository root:

  • pnpm nx run @tanstack/query-integration-react-nodenext:test:types