UNPKG

taro-hooks

Version:
9 lines (8 loc) 293 B
import type { PromiseWithoutOptionAction, PromiseAction } from '../type'; export type Enable = PromiseAction<string>; export type Disable = PromiseWithoutOptionAction; declare function useAlertBeforeUnload(): { enable: Enable; disable: Disable; }; export default useAlertBeforeUnload;