Repository navigation
fix(vue-query,query-core): export queryOptions supporting types and add declaration-emit tests - #12723
Conversation
…dd declaration-emit regression tests
🦋 Changeset detectedLatest commit: a491bb7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 26 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Changes
Follow-up for #11042 (after #11224 resolved the duplicate
UndefinedInitialQueryOptions/DefinedInitialQueryOptionsexport collision):queryOptions/QueryOptions/UseQueryOptionssignatures so TypeScript does not hitTS2883when expanding option types under declaration emit:@tanstack/query-core:QueryBehavior,RetryValue,RetryDelayValue,FetchContext,FetchDirection,FetchMeta,FetchOptions@tanstack/vue-query:ShallowOption,MaybeRefOrGetter,MaybeRef,MaybeRefDeep,MaybeGetter,DeepUnwrapRefpackages/vue-query/src/__tests__/queryOptions.test-d.tsandintegrations/vue/declaration-emit/verifying exported factory functions, spreading intoqueryOptions({ ...opts, select }),selectinference, andDataTagpreservation inqueryClient.getQueryData(queryKey).@tanstack/query-coreand@tanstack/vue-query.Verification
pnpm oxfmt --checkon all changed filespnpm run test:knip && pnpm run test:sherif && pnpm run test:docspnpm nx run-many --targets=build,test:build,test:oxlint,test:eslint,test:types,test:lib --projects=@tanstack/query-core,@tanstack/vue-query(TS 5.7–7.1, Vue 2 / 2.7 / 3, publint + attw)pnpm nx run @tanstack/query-integration-vue-declaration-emit:test:types(TS 6.0 / 7.0 / 7.1 withskipLibCheck: false)Checklist
@tanstack/query-coreand@tanstack/vue-query.Summary by CodeRabbit