feat:add Environment
This commit is contained in:
parent
37e5d5494a
commit
2c0a82076d
@ -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 { }
|
Reference in New Issue
Block a user