integrations/vue/declaration-emit
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
TanStack Vue Query Declaration Emit Integration#
Checks that declarations emitted for queryOptions from @tanstack/vue-query are portable and type-check in a consumer.
What it checks#
src/query-options.tsexports twoqueryOptionsresults, one withoutinitialDataand one with it.tsconfig.emit.jsonemits declarations only fromsrc/todist/.tsconfig.consume.jsontype-checksconsumer/query-options.ts, which imports both options from../dist/query-options.js, withskipLibCheck: false.- Both steps run 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-vue-declaration-emit:test:types