@hylid/types 3.2.0-alpha.1 → 3.2.0-alpha.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/lib/common.d.ts +10 -1
  2. package/package.json +1 -1
package/lib/common.d.ts CHANGED
@@ -3,4 +3,13 @@ export declare type PickAttr<Attr extends keyof T, T = any> = {
3
3
  }[keyof T];
4
4
  export declare type Common = Record<string, any>;
5
5
  export declare type Callback<T> = (result?: T) => void;
6
- export declare type JsApiType = 'async' | 'sync' | 'callback';
6
+ /**
7
+ * jsapi 类型
8
+ * @enum {string}
9
+ * @memberof JsApiType
10
+ * @property {string} async 参数有回调函数的异步 JSAPI(如: my.getSystemInfo)
11
+ * @property {string} sync 参数无回调函数的不同 JSAPI(如: my.getSystemInfoSync)
12
+ * @property {string} callback 参数是回调函数的 JSAPI(如: my.onAppShow)
13
+ * @property {string} attribute 访问 my 对象上的属性(如: my.SDKVersion)套壳 H5 only
14
+ */
15
+ export declare type JsApiType = 'async' | 'sync' | 'callback' | 'attribute';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hylid/types",
3
- "version": "3.2.0-alpha.1",
3
+ "version": "3.2.0-alpha.10",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib",