ms-types 0.4.9 → 0.4.10

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/package.json +1 -1
  2. package/types/global.d.ts +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/global.d.ts CHANGED
@@ -201,6 +201,16 @@ declare function logw(...args: any[]): void;
201
201
  */
202
202
  declare function loge(...args: any[]): void;
203
203
 
204
+ /**
205
+ * 查找类 (仅安卓可用)
206
+ * @param className 类名
207
+ * @returns 类对象
208
+ * @description 查找类对象
209
+ * @example
210
+ * const clazz = importClass("com.example.TestClass");
211
+ */
212
+ declare function importClass(className: string): any;
213
+
204
214
  /**
205
215
  * 加载 dex 文件 (仅安卓可用)
206
216
  * @param path dex 文件路径 支持apk文件
@@ -214,5 +224,7 @@ declare function loadDex(path: string): void;
214
224
  * 获取当前上下文 (仅安卓可用)
215
225
  * @returns 当前上下文
216
226
  * @description 获取当前上下文
227
+ * @example
228
+ * const context = getContext();
217
229
  */
218
230
  declare function getContext(): any;