UNPKG

@slan-health/taro-vueuse

Version:

taro vue版本hooks

12 lines (10 loc) 496 B
import { UpdateManager } from '@tarojs/taro'; export type Result = UpdateManager | undefined; export type IAction = (manager: UpdateManager) => void; export interface IUpdateManager { onCheckForUpdate?: (manager: UpdateManager, result: UpdateManager.OnCheckForUpdateResult) => void; onUpdateReady?: IAction; onUpdateFailed?: IAction; } declare function useUpdateManager({ onCheckForUpdate, onUpdateReady, onUpdateFailed, }?: IUpdateManager): Result; export default useUpdateManager;