Skip to content
Source
Sign inSign up
TanStack/query

CreateMutationOptions is not exported correctly #8318

Send to my agent
Closedkevinmeyvaert(GitHub profile, opens in a new tab) opened this issue 2 comments

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

  • Mac OSX
  • Typescript 5.5.4

Tanstack Query adapter

angular-query

TanStack Query version

5.61.0

TypeScript version

5.5.4

Additional context

No response

  1. 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?

  2. arnoud-dv(GitHub profile, opens in a new tab) added labelspackage: angular-query

  3. arnoud-dv(GitHub profile, opens in a new tab) added labelspackage: angular-query-experimental

  4. 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. 😀

Sign in to join this conversation.