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

README.md

15 lines855 Bytes

1# TanStack Vue Query Declaration Emit Integration
2​
3Checks that declarations emitted for `queryOptions` from `@tanstack/vue-query` are portable and type-check in a consumer.
4​
5## What it checks
6​
7- `src/query-options.ts` exports two `queryOptions` results, one without `initialData` and one with it.
8- `tsconfig.emit.json` emits declarations only from `src/` to `dist/`.
9- `tsconfig.consume.json` type-checks `consumer/query-options.ts`, which imports both options from `../dist/query-options.js`, with `skipLibCheck: false`.
10- Both steps run with TypeScript 6, TypeScript 7.0, and TypeScript 7.1 (dev build) from the root `node_modules`.
11- CI runs the `test:types` script, which runs `test:types:ts6`, `test:types:ts7`, and `test:types:ts71`.
12​
13To run it from the repository root:
14​
15- `pnpm nx run @tanstack/query-integration-vue-declaration-emit:test:types`