the-forest/client/node_modules/@tanstack/react-query/build/modern/useMutationState.d.ts

11 lines
513 B
TypeScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
import { MutationFilters, QueryClient, MutationState, Mutation } from '@tanstack/query-core';
declare function useIsMutating(filters?: MutationFilters, queryClient?: QueryClient): number;
type MutationStateOptions<TResult = MutationState> = {
filters?: MutationFilters;
select?: (mutation: Mutation) => TResult;
};
declare function useMutationState<TResult = MutationState>(options?: MutationStateOptions<TResult>, queryClient?: QueryClient): Array<TResult>;
export { useIsMutating, useMutationState };