(
options?: T,
)
| 627 | } |
| 628 | |
| 629 | defaultMutationOptions<T extends MutationOptions<any, any, any, any>>( |
| 630 | options?: T, |
| 631 | ): T { |
| 632 | if (options?._defaulted) { |
| 633 | return options |
| 634 | } |
| 635 | return { |
| 636 | ...this.#defaultOptions.mutations, |
| 637 | ...(options?.mutationKey && |
| 638 | this.getMutationDefaults(options.mutationKey)), |
| 639 | ...options, |
| 640 | _defaulted: true, |
| 641 | } as T |
| 642 | } |
| 643 | |
| 644 | clear(): void { |
| 645 | this.#queryCache.clear() |
no test coverage detected