Open History to see the last commit
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`