integrations/react/nodenext
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
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, sincepackage.jsonsets"type": "module") andsrc/hooks.cts(CommonJS) both export a hook that callsuseQuery.tsconfig.jsonsetsmoduleandmoduleResolutiontonodenextwithdeclarationandemitDeclarationOnly, so the declarations for both files are emitted todist/.- The check runs with TypeScript 6, TypeScript 7.0, and TypeScript 7.1 (dev build) from the root
node_modules. - CI runs the
test:typesscript, which runstest:types:ts6,test:types:ts7, andtest:types:ts71.
To run it from the repository root:
pnpm nx run @tanstack/query-integration-react-nodenext:test:types