index.uts 1.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
import { ShowActionSheetOptions, ShowModalOptions, ShowToastOptions, ShowLoadingOptions, ShowToast, HideToast, ShowLoading, HideLoading, ShowModal, ShowActionSheet } from "../interface.uts"
import * as ToastModule from "./showToast.uts"
import * as ModalModule from "./showModal.uts"
import * as ActionSheetModule from "./showActionSheet.uts"


export const showToast : ShowToast = function (options : ShowToastOptions) {
	ToastModule.toShowToast(options)
}

export const hideToast : HideToast = function () {
	ToastModule.toHideToast()
}

export const showLoading : ShowLoading = function (options : ShowLoadingOptions) {
	ToastModule.toShowLoading(options)
}

export const hideLoading : HideLoading = function () {
	ToastModule.toHideLoading()
}

export const showModal : ShowModal = function (options : ShowModalOptions) {
	ModalModule.toShowModal(options)
}

export const showActionSheet : ShowActionSheet = function (options : ShowActionSheetOptions) {
	ActionSheetModule.actionSheet(options)
}