Environment add device brand and model info
This commit is contained in:
2
doric-js/index.d.ts
vendored
2
doric-js/index.d.ts
vendored
@@ -51,6 +51,8 @@ declare module 'doric/lib/src/runtime/global' {
|
||||
screenWidth: number;
|
||||
screenHeight: number;
|
||||
statusBarHeight: number;
|
||||
deviceBrand: string;
|
||||
deviceModel: string;
|
||||
[index: string]: number | string | boolean | object | undefined;
|
||||
};
|
||||
function Entry(constructor: {
|
||||
|
2
doric-js/lib/src/runtime/global.d.ts
vendored
2
doric-js/lib/src/runtime/global.d.ts
vendored
@@ -37,6 +37,8 @@ declare global {
|
||||
screenWidth: number;
|
||||
screenHeight: number;
|
||||
statusBarHeight: number;
|
||||
deviceBrand: string;
|
||||
deviceModel: string;
|
||||
[index: string]: number | string | boolean | object | undefined;
|
||||
};
|
||||
function Entry(constructor: {
|
||||
|
@@ -62,6 +62,15 @@ declare global {
|
||||
|
||||
statusBarHeight: number,
|
||||
|
||||
/**
|
||||
* ex:Apple or Google
|
||||
*/
|
||||
deviceBrand: string,
|
||||
/**
|
||||
* ex: iPhone12,5 or pixel 3
|
||||
*/
|
||||
deviceModel: string,
|
||||
|
||||
[index: string]: number | string | boolean | object | undefined
|
||||
}
|
||||
function Entry(constructor: { new(...args: any[]): {} }): any
|
||||
|
Reference in New Issue
Block a user