@hyext/types-ext-sdk-hy 4.2.0 → 4.2.1-beta.2
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 +12 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4455,6 +4455,11 @@ namespace env {
|
|
|
4455
4455
|
* 获取网络类型
|
|
4456
4456
|
*/
|
|
4457
4457
|
function getNetworkType(): Promise<NetworkTypeRsp>;
|
|
4458
|
+
/**
|
|
4459
|
+
* 获取小游戏环境信息
|
|
4460
|
+
* @returns 调用结果
|
|
4461
|
+
*/
|
|
4462
|
+
function getMinigameHostInfo(): Promise<GetMinigameHostInfoRsp>;
|
|
4458
4463
|
}
|
|
4459
4464
|
|
|
4460
4465
|
/**
|
|
@@ -4683,6 +4688,13 @@ type NetworkTypeRsp = {
|
|
|
4683
4688
|
weakNet: boolean;
|
|
4684
4689
|
};
|
|
4685
4690
|
|
|
4691
|
+
/**
|
|
4692
|
+
* @property isFront - 当前小游戏在APP最前端且APP也在系统前台,返回true,否则返回false
|
|
4693
|
+
*/
|
|
4694
|
+
type GetMinigameHostInfoRsp = {
|
|
4695
|
+
isFront: boolean;
|
|
4696
|
+
};
|
|
4697
|
+
|
|
4686
4698
|
/**
|
|
4687
4699
|
* EXE加工相关
|
|
4688
4700
|
*/
|