ms-types 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/device.d.ts +6 -0
- package/types/global.d.ts +0 -4
- package/types/http.d.ts +2 -2
- package/types/zh/HTTP/346/250/241/345/235/227.d.ts +2 -2
- package/types/zh//345/205/250/345/261/200/346/250/241/345/235/227.d.ts +0 -4
- package/types/zh//350/256/276/345/244/207/346/250/241/345/235/227.d.ts +6 -0
package/package.json
CHANGED
package/types/device.d.ts
CHANGED
|
@@ -108,6 +108,12 @@ declare namespace device {
|
|
|
108
108
|
* @example device.getScreenScale()
|
|
109
109
|
*/
|
|
110
110
|
function getScreenScale(): number;
|
|
111
|
+
/**
|
|
112
|
+
* 获取屏幕亮度
|
|
113
|
+
* @returns 屏幕亮度,范围 0.0-1.0
|
|
114
|
+
* @example device.getScreenBrightness()
|
|
115
|
+
*/
|
|
116
|
+
function getScreenBrightness(): number;
|
|
111
117
|
/**
|
|
112
118
|
* 获取屏幕方向 PORTRAIT 竖屏 LANDSCAPE 横屏
|
|
113
119
|
* @returns 设备方向
|
package/types/global.d.ts
CHANGED
package/types/http.d.ts
CHANGED
|
@@ -109,6 +109,12 @@ declare namespace $设备 {
|
|
|
109
109
|
* @example $设备.获取屏幕缩放比例()
|
|
110
110
|
*/
|
|
111
111
|
function 获取屏幕缩放比例(): 数字;
|
|
112
|
+
/**
|
|
113
|
+
* 获取屏幕亮度
|
|
114
|
+
* @returns 屏幕亮度,范围 0.0-1.0
|
|
115
|
+
* @example $设备.获取屏幕亮度()
|
|
116
|
+
*/
|
|
117
|
+
function 获取屏幕亮度(): 数字;
|
|
112
118
|
/**
|
|
113
119
|
* 获取屏幕方向 PORTRAIT 竖屏 LANDSCAPE 横屏
|
|
114
120
|
* @returns 设备方向
|