feat:add Environment

This commit is contained in:
pengfei.zhou 2019-12-10 20:31:04 +08:00
parent 37e5d5494a
commit 2c0a82076d

View File

@ -19,6 +19,22 @@ export type BridgeContext = { [index: string]: { [index: string]: (args?: any) =
declare global {
const context: BridgeContext
const Environment: {
platform: "Android" | "iOS" | "Qt",
platformVersion: string,
appName: string,
appVersion: string,
libVersion: string,
screenWidth: number,
screenHeight: number,
}
function Entry(constructor: { new(...args: any[]): {} }): any
}
export { }