@tarojs/taro 3.4.0-beta.2 → 3.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 +5 -7
- package/types/api/ai/face.d.ts +133 -0
- package/types/api/ai/visionkit.d.ts +303 -0
- package/types/api/base/crypto.d.ts +90 -0
- package/types/api/base/debug.d.ts +152 -13
- package/types/api/base/env.d.ts +2 -1
- package/types/api/base/index.d.ts +10 -2
- package/types/api/base/performance.d.ts +195 -0
- package/types/api/base/system.d.ts +539 -101
- package/types/api/base/update.d.ts +59 -7
- package/types/api/base/weapp/app-event.d.ts +49 -26
- package/types/api/base/weapp/life-cycle.d.ts +141 -1
- package/types/api/canvas/index.d.ts +171 -136
- package/types/api/cloud/index.d.ts +2 -2
- package/types/api/device/accelerometer.d.ts +3 -3
- package/types/api/device/accessibility.d.ts +26 -0
- package/types/api/device/battery.d.ts +2 -2
- package/types/api/device/{ble.d.ts → bluetooth-ble.d.ts} +228 -62
- package/types/api/device/bluetooth-peripheral.d.ts +430 -0
- package/types/api/device/bluetooth.d.ts +67 -2
- package/types/api/device/calendar.d.ts +88 -0
- package/types/api/device/contact.d.ts +74 -50
- package/types/api/device/gyroscope.d.ts +5 -5
- package/types/api/device/iBeacon.d.ts +33 -19
- package/types/api/{ui → device}/keyboard.d.ts +0 -0
- package/types/api/device/{performance.d.ts → memory.d.ts} +4 -4
- package/types/api/device/motion.d.ts +3 -3
- package/types/api/device/network.d.ts +53 -12
- package/types/api/device/nfc.d.ts +1089 -13
- package/types/api/device/scan.d.ts +1 -1
- package/types/api/device/screen.d.ts +40 -12
- package/types/api/device/wifi.d.ts +41 -6
- package/types/api/files/index.d.ts +371 -184
- package/types/api/location/index.d.ts +116 -55
- package/types/api/media/audio.d.ts +653 -60
- package/types/api/media/background-audio.d.ts +47 -41
- package/types/api/media/camera.d.ts +38 -19
- package/types/api/media/editor.d.ts +22 -2
- package/types/api/media/image.d.ts +54 -105
- package/types/api/media/live.d.ts +66 -6
- package/types/api/media/map.d.ts +469 -49
- package/types/api/media/media-recorder.d.ts +92 -0
- package/types/api/media/recorder.d.ts +20 -20
- package/types/api/media/video-decoder.d.ts +117 -0
- package/types/api/media/video-processing.d.ts +11 -7
- package/types/api/media/video.d.ts +327 -39
- package/types/api/media/voip.d.ts +290 -0
- package/types/api/{open-api/navigate.d.ts → navigate/index.d.ts} +63 -27
- package/types/api/network/download.d.ts +39 -16
- package/types/api/network/request.d.ts +143 -38
- package/types/api/network/tcp.d.ts +181 -0
- package/types/api/network/udp.d.ts +154 -83
- package/types/api/network/upload.d.ts +41 -25
- package/types/api/network/websocket.d.ts +16 -15
- package/types/api/open-api/authorize.d.ts +41 -2
- package/types/api/open-api/channels.d.ts +178 -0
- package/types/api/open-api/customer-service.d.ts +1 -1
- package/types/api/open-api/facial.d.ts +3 -0
- package/types/api/open-api/favorites.d.ts +100 -0
- package/types/api/open-api/group.d.ts +59 -0
- package/types/api/open-api/invoice.d.ts +2 -2
- package/types/api/open-api/license-plate.d.ts +27 -0
- package/types/api/open-api/login.d.ts +21 -0
- package/types/api/open-api/redpackage.d.ts +24 -0
- package/types/api/open-api/settings.d.ts +76 -14
- package/types/api/open-api/soter.d.ts +2 -2
- package/types/api/open-api/subscribe-message.d.ts +88 -3
- package/types/api/open-api/user-info.d.ts +55 -18
- package/types/api/open-api/werun.d.ts +33 -6
- package/types/api/payment/index.d.ts +119 -0
- package/types/api/route/index.d.ts +13 -9
- package/types/api/share/index.d.ts +192 -9
- package/types/api/storage/index.d.ts +29 -83
- package/types/api/swan/index.d.ts +1 -1
- package/types/api/ui/animation.d.ts +84 -70
- package/types/api/ui/background.d.ts +4 -2
- package/types/api/ui/custom-component.d.ts +1 -1
- package/types/api/ui/fonts.d.ts +27 -31
- package/types/api/ui/navigation-bar.d.ts +1 -0
- package/types/api/ui/scroll.d.ts +73 -7
- package/types/api/ui/sticky.d.ts +4 -4
- package/types/api/ui/tab-bar.d.ts +7 -7
- package/types/api/ui/window.d.ts +22 -2
- package/types/api/worker/index.d.ts +9 -1
- package/types/api/wxml/index.d.ts +143 -105
- package/types/compile.d.ts +111 -106
- package/types/global.d.ts +142 -111
- package/types/taro.api.d.ts +79 -62
- package/types/taro.component.d.ts +82 -60
- package/types/taro.config.d.ts +174 -170
- package/types/taro.extend.d.ts +0 -17
- package/types/taro.hooks.d.ts +12 -12
- package/types/taro.lifecycle.d.ts +7 -0
- package/h5.js +0 -4
- package/types/api/open-api/payment.d.ts +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import Taro from '../../index'
|
|
2
|
-
|
|
3
|
-
declare module '../../index' {
|
|
4
|
-
namespace requestPayment {
|
|
5
|
-
interface Option {
|
|
6
|
-
/** 随机字符串,长度为32个字符以下 */
|
|
7
|
-
nonceStr: string
|
|
8
|
-
/** 统一下单接口返回的 prepay_id 参数值,提交格式如:prepay_id=*** */
|
|
9
|
-
package: string
|
|
10
|
-
/** 签名,具体签名方案参见 [小程序支付接口文档](https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_7&index=3) */
|
|
11
|
-
paySign: string
|
|
12
|
-
/** 时间戳,从 1970 年 1 月 1 日 00:00:00 至今的秒数,即当前的时间 */
|
|
13
|
-
timeStamp: string
|
|
14
|
-
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
15
|
-
complete?: (res: TaroGeneral.CallbackResult) => void
|
|
16
|
-
/** 接口调用失败的回调函数 */
|
|
17
|
-
fail?: (res: TaroGeneral.CallbackResult) => void
|
|
18
|
-
/** 签名算法 */
|
|
19
|
-
signType?: keyof signType
|
|
20
|
-
/** 接口调用成功的回调函数 */
|
|
21
|
-
success?: (res: TaroGeneral.CallbackResult) => void
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface signType {
|
|
25
|
-
/** MD5 */
|
|
26
|
-
MD5
|
|
27
|
-
/** HMAC-SHA256 */
|
|
28
|
-
'HMAC-SHA256'
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface TaroStatic {
|
|
33
|
-
/** 发起微信支付。了解更多信息,请查看[微信支付接口文档](https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_3&index=1)
|
|
34
|
-
* @supported weapp, h5
|
|
35
|
-
* @example
|
|
36
|
-
* ```tsx
|
|
37
|
-
* Taro.requestPayment({
|
|
38
|
-
* timeStamp: '',
|
|
39
|
-
* nonceStr: '',
|
|
40
|
-
* package: '',
|
|
41
|
-
* signType: 'MD5',
|
|
42
|
-
* paySign: '',
|
|
43
|
-
* success: function (res) { },
|
|
44
|
-
* fail: function (res) { }
|
|
45
|
-
* })
|
|
46
|
-
* ```
|
|
47
|
-
* @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/payment/wx.requestPayment.html
|
|
48
|
-
*/
|
|
49
|
-
requestPayment(option: requestPayment.Option): Promise<TaroGeneral.CallbackResult>
|
|
50
|
-
|
|
51
|
-
/** 支付各个安全场景验证人脸
|
|
52
|
-
* @supported weapp
|
|
53
|
-
* @example
|
|
54
|
-
* ```tsx
|
|
55
|
-
* Taro.faceVerifyForPay(params).then(...)
|
|
56
|
-
* ```
|
|
57
|
-
* @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/payment/wx.faceVerifyForPay.html
|
|
58
|
-
*/
|
|
59
|
-
faceVerifyForPay(option: any): Promise<any>
|
|
60
|
-
}
|
|
61
|
-
}
|