@dcloudio/uni-app-x 0.4.4 → 0.4.5

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/.env CHANGED
@@ -1,2 +1,3 @@
1
1
  UNI_CORE_DIR = "/Users/guoshengqiang/Documents/vuejs-core/packages/runtime-uts/src/extapi"
2
2
  UNI_EXT_DIR = "/Users/guoshengqiang/Documents/uni-app/api"
3
+ UNI_COMPLIER_META_DIR = "/Users/guoshengqiang/Documents/uni-app-next/packages/uni-uts-v1/lib/ext-api"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -9,6 +9,7 @@
9
9
  "scripts": {
10
10
  "build:types:core": "node ./scripts/build-types.js -t core",
11
11
  "build:types:ext": "node ./scripts/build-types.js -t ext",
12
+ "build:types:meta": "node ./scripts/build-meta.js",
12
13
  "build:types": "npm run build:types:core && npm run build:types:ext"
13
14
  },
14
15
  "devDependencies": {
@@ -16,6 +17,7 @@
16
17
  "dotenv": "^16.3.1",
17
18
  "fs-extra": "^11.1.1",
18
19
  "glob": "^10.3.3",
19
- "minimist": "^1.2.8"
20
+ "minimist": "^1.2.8",
21
+ "ts-morph": "^19.0.0"
20
22
  }
21
- }
23
+ }
@@ -9,6 +9,8 @@ declare class Event {
9
9
  currentTarget: INode
10
10
  timeStamp: number
11
11
 
12
+ constructor (type: string)
13
+
12
14
  stopPropagation(): void
13
15
 
14
16
  preventDefault(): void
@@ -1,3 +1,5 @@
1
+ /// <reference path="./Event.d.ts" />
2
+
1
3
  /**
2
4
  * @package io.dcloud.uniapp.runtime
3
5
  */
@@ -43,4 +45,6 @@ interface INode {
43
45
  removeChild(aChild: INode): INode
44
46
 
45
47
  remove(): void
48
+
49
+ dispatchEvent(type: string, value: Event): void
46
50
  }
@@ -6,4 +6,21 @@
6
6
  declare class MouseEvent extends Event {
7
7
  x: number
8
8
  y: number
9
+ clientX: number
10
+ clientY: number
11
+ pageX: number
12
+ pageY: number
13
+ screenX: number
14
+ screenY: number
15
+ constructor (
16
+ type: string,
17
+ x: number,
18
+ y: number,
19
+ clientX: number,
20
+ clientY: number,
21
+ pageX: number,
22
+ pageY: number,
23
+ screenX: number,
24
+ screenY: number
25
+ )
9
26
  }
@@ -84,7 +84,7 @@ export type GetAppBaseInfoResult = {
84
84
  }
85
85
 
86
86
 
87
- export type GetAppBaseInfo = (config: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult;
87
+ export type GetAppBaseInfo = (config?: GetAppBaseInfoOptions | null) => GetAppBaseInfoResult;
88
88
 
89
89
 
90
90
  export interface Uni {
@@ -108,7 +108,7 @@ export type GetDeviceInfoResult = {
108
108
 
109
109
 
110
110
 
111
- export type GetDeviceInfo = (config: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
111
+ export type GetDeviceInfo = (config?: GetDeviceInfoOptions | null) => GetDeviceInfoResult;
112
112
 
113
113
 
114
114
  export interface Uni {
@@ -320,7 +320,7 @@ export type ClearStorageOptions = {
320
320
  complete: ClearStorageCompleteCallback | null
321
321
  }
322
322
 
323
- export type ClearStorage = (option: ClearStorageOptions | null) => void
323
+ export type ClearStorage = (option?: ClearStorageOptions | null) => void
324
324
 
325
325
 
326
326
  export type ClearStorageSync = () => void