UNPKG

@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.04 kB
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 UseRegisterProps<TVariables> = { mutationOptions?: Omit<UseMutationOptions<AuthActionResponse, Error | RefineError, TVariables, unknown>, "mutationFn">; }; export type UseRegisterReturnType<TVariables> = UseMutationResult<AuthActionResponse, Error | RefineError, TVariables, unknown>; /** * `useRegister` calls `register` 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/useRegister} for more details. * * @typeParam TVariables - Values for mutation function. default `{}` * */ export declare function useRegister<TVariables = {}>({ mutationOptions, }?: UseRegisterProps<TVariables>): UseRegisterReturnType<TVariables>; //# sourceMappingURL=index.d.ts.map