@refinedev/core
Version:
Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.
17 lines • 1.09 kB
Source Map (JSON)
import { type UseMutationOptions, type UseMutationResult } from "@tanstack/react-query";
import type { AuthActionResponse } from "../../../contexts/auth/types";
import type { RefineError } from "../../../contexts/data/types";
export type UseUpdatePasswordProps<TVariables> = {
mutationOptions?: Omit<UseMutationOptions<AuthActionResponse, Error | RefineError, TVariables, unknown>, "mutationFn">;
};
export type UseUpdatePasswordReturnType<TVariables> = UseMutationResult<AuthActionResponse, Error | RefineError, TVariables, unknown>;
/**
* `useUpdatePassword` calls `updatePassword` method from {@link https://refine.dev/docs/api-reference/core/providers/auth-provider `authProvider`} under the hood.
*
* @see {@link https://refine.dev/docs/api-reference/core/hooks/auth/useUpdatePassword} for more details.
*
* @typeParam TVariables - Values for mutation function. default `{}`
*
*/
export declare function useUpdatePassword<TVariables = {}>({ mutationOptions, }?: UseUpdatePasswordProps<TVariables>): UseUpdatePasswordReturnType<TVariables>;
//# sourceMappingURL=index.d.ts.map