the-forest/client/node_modules/@tanstack/react-query/build/legacy/useMutationState.d.cts
2024-09-17 20:35:18 -04:00

11 lines
513 B
TypeScript

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 };