TanStack / query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
42.67k stars 2.92k forks source link

CreateMutationOptions is not exported correctly #8318

Closed kevinmeyvaert closed 5 days ago

kevinmeyvaert commented 6 days ago

Describe the bug

CreateMutationOptions is not exposed correctly in @tanstack/angular-query-experimental 5.61.0. As such you get errors using mutationOptions.

Public property x' of exported class has or is using name 'CreateMutationOptions' from external module "path/node_modules/@tanstack/angular-query-experimental/build/index" but cannot be named.

### Your minimal, reproducible example

/

### Steps to reproduce

use the newly introduced `mutationOptions` function.

test = () => { return mutationOptions({ mutationFn: () => Promise.resolve(), }); };

Image

Expected behavior

No ts error.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Tanstack Query adapter

angular-query

TanStack Query version

5.61.0

TypeScript version

5.5.4

Additional context

No response

arnoud-dv commented 5 days ago

I cannot reproduce this in a newly generated Angular application even when I set skipLibCheck to false and use TypeScript 5.5.4. But it makes sense to export this type. Can you check using v5.61.1 if it works now?

kevinmeyvaert commented 5 days ago

Goodmorning Arnoud, I just checked the 5.61.1 release and the error is not longer present. Thanks for sorting this out so swiftly! Have a nice day. 😀