import Taro from '@tarojs/api' ; export const getApp = function < T = TaroGeneral . IAnyObject > ( ) { return Taro . getCurrentInstance ( ) . app as unknown as Taro . getApp . Instance < T > ; } ; export { getCurrentPages } from '@tarojs/router' ; export const getCurrentInstance = Taro . getCurrentInstance ;