ApplicationInterface API
ts
import { WXApp } from "./WXApp";
declare var webui: ApplicationInterface; // accesspoint for webui-x
export interface ApplicationInterface {
getCurrentRootManager(): WXApp;
getCurrentApplication(): WXApp;
getApplication(packageName: string): WXApp;
}
ts
export interface WXApp {
getPackageName(): string;
getVersionName(): string;
getVersionCode(): number;
}