@tarojs/taro-h5
Version:
Taro h5 framework
11 lines (10 loc) • 913 B
TypeScript
import Taro from '@tarojs/api';
declare const showToast: typeof Taro.showToast;
declare const hideToast: typeof Taro.hideToast;
declare const showLoading: typeof Taro.showLoading;
declare const hideLoading: typeof Taro.hideLoading;
declare const showModal: typeof Taro.showModal;
declare const showActionSheet: (options?: Taro.showActionSheet.Option, methodName?: string) => Promise<Taro.showActionSheet.SuccessCallbackResult>;
declare const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
declare const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
export { disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast };