UNPKG

@refinedev/core

Version:

refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.

16 lines 832 B
import type { IRefineContextOptions } from "../../../contexts/refine/types"; import type { IUnsavedWarnContext } from "../../../contexts/unsavedWarn/types"; type UseWarnAboutChangeType = () => { warnWhenUnsavedChanges: IRefineContextOptions["warnWhenUnsavedChanges"]; warnWhen: NonNullable<IUnsavedWarnContext["warnWhen"]>; setWarnWhen: NonNullable<IUnsavedWarnContext["setWarnWhen"]>; }; /** * When you have unsaved changes and try to leave the current page, **refine** shows a confirmation modal box. * To activate this feature, set the `warnWhenUnsavedChanges` to `true`. * * @see {@link https://refine.dev/docs/api-reference/core/components/refine-config#warnwhenunsavedchanges} for more details. */ export declare const useWarnAboutChange: UseWarnAboutChangeType; export {}; //# sourceMappingURL=index.d.ts.map