@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.
11 lines • 589 B
TypeScript
import { type UseMutationResult } from "@tanstack/react-query";
import type { OnErrorResponse } from "../../../contexts/auth/types";
export type UseOnErrorReturnType = UseMutationResult<OnErrorResponse, unknown, unknown, unknown>;
/**
* `useOnError` calls the `checkError` method from the {@link https://refine.dev/docs/core/providers/auth-provider `authProvider`} under the hood.
*
* @see {@link https://refine.dev/docs/api-reference/core/hooks/auth/useCheckError} for more details.
*
*/
export declare function useOnError(): UseOnErrorReturnType;
//# sourceMappingURL=index.d.ts.map