UNPKG

taro-hooks

Version:
10 lines (9 loc) 323 B
import type { UpdateManager } from '@tarojs/taro'; export type UpdateInfo = { hasUpdate?: boolean; error?: boolean; ready?: boolean; }; export type Callback = (manager: UpdateManager, updateInfo: UpdateInfo) => void; declare function useUpdateManager(callback: Callback): void; export default useUpdateManager;