@dcloudio/uni-app-x 0.4.1 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @package io.dcloud.uniapp
3
+ */
4
+ interface AsyncApiResult {
5
+ errMsg: string
6
+ }
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @package io.dcloud.uts
3
+ */
1
4
  declare class UTSError extends Error {
2
5
  constructor ();
3
6
  constructor (message: string);
@@ -1,6 +1,10 @@
1
1
  /// <reference path="./UTSError.d.ts" />
2
+ /// <reference path="./AsyncApiResult.d.ts" />
2
3
 
3
- declare class UniError extends UTSError {
4
+ /**
5
+ * @package io.dcloud.uniapp
6
+ */
7
+ declare class UniError extends UTSError implements AsyncApiResult {
4
8
  constructor ();
5
9
  constructor (message: string);
6
10
  constructor (message: string, options: UTSJSONObject);
@@ -9,5 +13,5 @@ declare class UniError extends UTSError {
9
13
  errSubject: string;
10
14
  errCode: number;
11
15
  errMsg: string;
12
- data: any;
16
+ data: any | null;
13
17
  }
@@ -1,3 +1,4 @@
1
+ /// <reference path='./AsyncApiResult' />
1
2
  /// <reference path='./CustomEvent.d.ts' />
2
3
  /// <reference path='./Event.d.ts' />
3
4
  /// <reference path='./IApp.d.ts' />