@hyext/types-ext-sdk-hy 4.2.2-beta.1 → 4.2.2-beta.3

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.
Files changed (2) hide show
  1. package/index.d.ts +14 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -4784,6 +4784,11 @@ namespace env {
4784
4784
  * @returns 调用结果
4785
4785
  */
4786
4786
  function getMinigameHostInfo(): Promise<GetMinigameHostInfoRsp>;
4787
+ /**
4788
+ * 获取小游戏环境信息
4789
+ * @returns 调用结果
4790
+ */
4791
+ function getExtgameHostInfo(): Promise<GetExtgameHostInfoRsp>;
4787
4792
  }
4788
4793
 
4789
4794
  /**
@@ -5021,6 +5026,15 @@ type GetMinigameHostInfoRsp = {
5021
5026
  enabled: number;
5022
5027
  };
5023
5028
 
5029
+ /**
5030
+ * @property isFront - 当前小游戏在APP最前端且APP也在系统前台,返回true,否则返回false
5031
+ * @property enabled - 当前小游戏是否可用,1为可用,0为不可用
5032
+ */
5033
+ type GetExtgameHostInfoRsp = {
5034
+ isFront: boolean;
5035
+ enabled: number;
5036
+ };
5037
+
5024
5038
  /**
5025
5039
  * EXE加工相关
5026
5040
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "4.2.2-beta.1",
3
+ "version": "4.2.2-beta.3",
4
4
  "description": "TypeScript definitions for sdk",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",