@hyext/types-ext-sdk-hy 4.2.0-beta.1 → 4.2.0-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.
Files changed (2) hide show
  1. package/index.d.ts +10 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -8905,6 +8905,16 @@ type SetStorageReq = {
8905
8905
  encrypt: boolean;
8906
8906
  };
8907
8907
 
8908
+ /**
8909
+ * 将任意数据转换为统一格式:{ dataType: string, data: any }
8910
+ */
8911
+ function transformData(data: any): any;
8912
+
8913
+ /**
8914
+ * 将 { dataType, data } 结构还原成原始数据
8915
+ */
8916
+ function restoreData(wrapper: any): any;
8917
+
8908
8918
  /**
8909
8919
  * 流模块
8910
8920
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "4.2.0-beta.1",
3
+ "version": "4.2.0-beta.2",
4
4
  "description": "TypeScript definitions for sdk",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",