@dcloudio/uni-app-x 0.3.0 → 0.4.1
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 +1 -0
- package/package.json +6 -3
- package/types/native/UTSError.d.ts +9 -0
- package/types/native/UniError.d.ts +13 -0
- package/types/native/index.d.ts +2 -0
- package/types/uni/ext/index.d.ts +19 -0
- package/types/uni/ext/lib/uni-audio/utssdk/index.d.ts +13 -0
- package/types/uni/ext/lib/uni-audio/utssdk/interface.d.ts +804 -0
- package/types/uni/ext/lib/uni-exit/utssdk/index.d.ts +19 -0
- package/types/uni/ext/lib/uni-exit/utssdk/interface.d.ts +63 -0
- package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +33 -0
- package/types/uni/ext/lib/uni-file-manager/utssdk/interface.d.ts +132 -0
- package/types/uni/ext/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +9 -0
- package/types/uni/ext/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +31 -0
- package/types/uni/ext/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +11 -0
- package/types/uni/ext/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +135 -0
- package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/index.d.ts +13 -0
- package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +120 -0
- package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/index.d.ts +13 -0
- package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/interface.d.ts +144 -0
- package/types/uni/ext/lib/uni-getLocation-system/utssdk/index.d.ts +15 -0
- package/types/uni/ext/lib/uni-getLocation-system/utssdk/interface.d.ts +99 -0
- package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/index.d.ts +15 -0
- package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/interface.d.ts +93 -0
- package/types/uni/ext/lib/uni-getNetworkType/utssdk/index.d.ts +23 -0
- package/types/uni/ext/lib/uni-getNetworkType/utssdk/interface.d.ts +67 -0
- package/types/uni/ext/lib/uni-getRecorderManager/utssdk/index.d.ts +13 -0
- package/types/uni/ext/lib/uni-getRecorderManager/utssdk/interface.d.ts +213 -0
- package/types/uni/ext/lib/uni-getSystemInfo/utssdk/index.d.ts +29 -0
- package/types/uni/ext/lib/uni-getSystemInfo/utssdk/interface.d.ts +517 -0
- package/types/uni/ext/lib/uni-getSystemSetting/utssdk/index.d.ts +11 -0
- package/types/uni/ext/lib/uni-getSystemSetting/utssdk/interface.d.ts +61 -0
- package/types/uni/ext/lib/uni-media/utssdk/index.d.ts +93 -0
- package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +877 -0
- package/types/uni/ext/lib/uni-network/utssdk/index.d.ts +61 -0
- package/types/uni/ext/lib/uni-network/utssdk/interface.d.ts +569 -0
- package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +23 -0
- package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +67 -0
- package/types/uni/ext/lib/uni-prompt/utssdk/index.d.ts +69 -0
- package/types/uni/ext/lib/uni-prompt/utssdk/interface.d.ts +674 -0
- package/types/uni/ext/lib/uni-storage/utssdk/index.d.ts +87 -0
- package/types/uni/ext/lib/uni-storage/utssdk/interface.d.ts +575 -0
- package/types/uni/ext/lib/uni-websocket/utssdk/index.d.ts +49 -0
- package/types/uni/ext/lib/uni-websocket/utssdk/interface.d.ts +511 -0
package/.env
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-app-x",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "uni-app x types",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"author": "DCloud",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build:types": "node ./scripts/build-types.js"
|
|
10
|
+
"build:types:core": "node ./scripts/build-types.js -t core",
|
|
11
|
+
"build:types:ext": "node ./scripts/build-types.js -t ext",
|
|
12
|
+
"build:types": "npm run build:types:core && npm run build:types:ext"
|
|
11
13
|
},
|
|
12
14
|
"devDependencies": {
|
|
13
15
|
"delete": "^1.1.0",
|
|
14
16
|
"dotenv": "^16.3.1",
|
|
15
17
|
"fs-extra": "^11.1.1",
|
|
16
|
-
"glob": "^10.3.3"
|
|
18
|
+
"glob": "^10.3.3",
|
|
19
|
+
"minimist": "^1.2.8"
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference path="./UTSError.d.ts" />
|
|
2
|
+
|
|
3
|
+
declare class UniError extends UTSError {
|
|
4
|
+
constructor ();
|
|
5
|
+
constructor (message: string);
|
|
6
|
+
constructor (message: string, options: UTSJSONObject);
|
|
7
|
+
constructor (errSubject: string, errCode: number, errMsg: string);
|
|
8
|
+
|
|
9
|
+
errSubject: string;
|
|
10
|
+
errCode: number;
|
|
11
|
+
errMsg: string;
|
|
12
|
+
data: any;
|
|
13
|
+
}
|
package/types/native/index.d.ts
CHANGED
package/types/uni/ext/index.d.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference path='./lib/uni-audio/utssdk/index.d.ts' />
|
|
2
|
+
/// <reference path='./lib/uni-exit/utssdk/index.d.ts' />
|
|
3
|
+
/// <reference path='./lib/uni-file-manager/utssdk/index.d.ts' />
|
|
4
|
+
/// <reference path='./lib/uni-getAccessibilityInfo/utssdk/index.d.ts' />
|
|
5
|
+
/// <reference path='./lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts' />
|
|
6
|
+
/// <reference path='./lib/uni-getAppBaseInfo/utssdk/index.d.ts' />
|
|
7
|
+
/// <reference path='./lib/uni-getDeviceInfo/utssdk/index.d.ts' />
|
|
8
|
+
/// <reference path='./lib/uni-getLocation-system/utssdk/index.d.ts' />
|
|
9
|
+
/// <reference path='./lib/uni-getLocation-tencent/utssdk/index.d.ts' />
|
|
10
|
+
/// <reference path='./lib/uni-getNetworkType/utssdk/index.d.ts' />
|
|
11
|
+
/// <reference path='./lib/uni-getRecorderManager/utssdk/index.d.ts' />
|
|
12
|
+
/// <reference path='./lib/uni-getSystemInfo/utssdk/index.d.ts' />
|
|
13
|
+
/// <reference path='./lib/uni-getSystemSetting/utssdk/index.d.ts' />
|
|
14
|
+
/// <reference path='./lib/uni-media/utssdk/index.d.ts' />
|
|
15
|
+
/// <reference path='./lib/uni-network/utssdk/index.d.ts' />
|
|
16
|
+
/// <reference path='./lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts' />
|
|
17
|
+
/// <reference path='./lib/uni-prompt/utssdk/index.d.ts' />
|
|
18
|
+
/// <reference path='./lib/uni-storage/utssdk/index.d.ts' />
|
|
19
|
+
/// <reference path='./lib/uni-websocket/utssdk/index.d.ts' />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EventCallback as EventCallbackOrigin,
|
|
3
|
+
CreateInnerAudioContext as CreateInnerAudioContextOrigin,
|
|
4
|
+
GetBackgroundAudioManager as GetBackgroundAudioManagerOrigin,
|
|
5
|
+
Uni as UniOrigin
|
|
6
|
+
} from './interface'
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
type EventCallback = EventCallbackOrigin
|
|
10
|
+
type CreateInnerAudioContext = CreateInnerAudioContextOrigin
|
|
11
|
+
type GetBackgroundAudioManager = GetBackgroundAudioManagerOrigin
|
|
12
|
+
interface Uni extends UniOrigin { }
|
|
13
|
+
}
|