@hyext/types-ext-sdk-hy 3.13.1-beta.2 → 3.13.2-beta.1
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/index.d.ts +13 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2931,6 +2931,11 @@ namespace device {
|
|
|
2931
2931
|
* @param params - 关闭本地server参数
|
|
2932
2932
|
*/
|
|
2933
2933
|
function stopLocalServer(params: StopLocalServerParams): Promise<void>;
|
|
2934
|
+
/**
|
|
2935
|
+
* 设备震动
|
|
2936
|
+
* @param params - 输入参数
|
|
2937
|
+
*/
|
|
2938
|
+
function vibrate(params: VibrateReq): Promise<void>;
|
|
2934
2939
|
}
|
|
2935
2940
|
|
|
2936
2941
|
/**
|
|
@@ -3113,6 +3118,14 @@ type StopLocalServerParams = {
|
|
|
3113
3118
|
serverId: string;
|
|
3114
3119
|
};
|
|
3115
3120
|
|
|
3121
|
+
/**
|
|
3122
|
+
* 震动参数
|
|
3123
|
+
* @property pattern - 模式,其中偶数下标为震动时间,奇数下标为间隙时间,单位是毫秒
|
|
3124
|
+
*/
|
|
3125
|
+
type VibrateReq = {
|
|
3126
|
+
pattern: number[];
|
|
3127
|
+
};
|
|
3128
|
+
|
|
3116
3129
|
/**
|
|
3117
3130
|
* 逐步废弃
|
|
3118
3131
|
*/
|