Skip to content

Commit 263b7fd

Browse files
committed
feat: update baselib defs to 3.7.7
1 parent 1a32a4f commit 263b7fd

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2025-02-08 v4.0.5
2+
- 修复 `setTimeout``setInterval` 的参数 ([#323](https://github.com/wechat-miniprogram/api-typings/issues/323))
3+
- 更新 API 定义到 3.7.7
4+
15
## 2025-01-14 v4.0.4
26
- 解决依赖安全问题
37

types/wx/lib.wx.api.d.ts

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ declare namespace WechatMiniprogram {
170170
fail?: AddPhoneCalendarFailCallback
171171
/** 事件位置 */
172172
location?: string
173+
/** 需要基础库: `3.7.6`
174+
*
175+
* 跳转小程序路径,必须要和 signature 一起使用,填入后会自动生成跳转链接拼接在事件说明中 */
176+
path?: string
177+
/** 需要基础库: `3.7.6`
178+
*
179+
* 跳转小程序路径签名,必须要和 path 一起使用,用 session_key 对 path 签名得到的结果,即 `hmac_sha256(session_key, path)`。详见 [用户数据的签名验证和加解密](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html) */
180+
signature?: string
173181
/** 接口调用成功的回调函数 */
174182
success?: AddPhoneCalendarSuccessCallback
175183
}
@@ -266,6 +274,10 @@ declare namespace WechatMiniprogram {
266274
fail?: AddPhoneRepeatCalendarFailCallback
267275
/** 事件位置 */
268276
location?: string
277+
/** 需要基础库: `3.7.6`
278+
*
279+
* 跳转小程序路径,必须要和 signature 一起使用,填入后会自动生成跳转链接拼接在事件说明中 */
280+
path?: string
269281
/** 重复周期结束时间的 unix 时间戳,不填表示一直重复 */
270282
repeatEndTime?: number
271283
/** 重复周期,默认 month 每月重复
@@ -276,6 +288,10 @@ declare namespace WechatMiniprogram {
276288
* - 'month': 每月重复。该模式日期不能大于 28 日;
277289
* - 'year': 每年重复; */
278290
repeatInterval?: 'day' | 'week' | 'month' | 'year'
291+
/** 需要基础库: `3.7.6`
292+
*
293+
* 跳转小程序路径签名,必须要和 path 一起使用,用 session_key 对 path 签名得到的结果,即 `hmac_sha256(session_key, path)`。详见 [用户数据的签名验证和加解密](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html) */
294+
signature?: string
279295
/** 接口调用成功的回调函数 */
280296
success?: AddPhoneRepeatCalendarSuccessCallback
281297
}
@@ -4667,10 +4683,6 @@ ctx.draw()
46674683
*
46684684
* 是否开启 http2 */
46694685
enableHttp2?: boolean
4670-
/** 需要基础库: `3.7.0`
4671-
*
4672-
* 等同于 enableQuic 参数。enableQuic 和 enableHttp3 其中一个参数传 true 就会生效。目前只在 Android 端生效。 */
4673-
enableHttp3?: boolean
46744686
/** 是否开启 profile,默认开启。开启后可在接口回调的 res.profile 中查看性能调试信息。 */
46754687
enableProfile?: boolean
46764688
/** 需要基础库: `2.10.4`
@@ -9917,10 +9929,6 @@ NFCAdapter.offDiscovered(listener) // 需传入与监听时同一个的函数对
99179929
*
99189930
* 开启 http2 */
99199931
enableHttp2?: boolean
9920-
/** 需要基础库: `3.7.0`
9921-
*
9922-
* 等同于 enableQuic 参数。enableQuic 和 enableHttp3 其中一个参数传 true 就会生效。目前只在 Android 端生效。 */
9923-
enableHttp3?: boolean
99249932
/** 需要基础库: `2.19.1`
99259933
*
99269934
* 是否开启 HttpDNS 服务。如开启,需要同时填入 httpDNSServiceId 。 HttpDNS 用法详见 [移动解析HttpDNS](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/HTTPDNS.html) */
@@ -11241,7 +11249,7 @@ wx.createSelectorQuery()
1124111249
}
1124211250
/** Snapshot 实例,可通过 [SelectorQuery](https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.html) 获取。
1124311251
*
11244-
* [Snapshot](https://developers.weixin.qq.com/miniprogram/dev/api/skyline/Snapshot.html) 通过 `id` 跟一个 [snapshot](https://developers.weixin.qq.com/miniprogram/dev/component/snapshot.html) 组件绑定,操作对应的 [snapshot](https://developers.weixin.qq.com/miniprogram/dev/component/snapshot.html) 组件。
11252+
* [Snapshot](https://developers.weixin.qq.com/miniprogram/dev/api/skyline/Snapshot.html) 通过 `id` 跟一个 [snapshot](#) 组件绑定,操作对应的 [snapshot](#) 组件。
1124511253
*
1124611254
* **示例代码**
1124711255
*
@@ -12588,10 +12596,6 @@ session.run({
1258812596
*
1258912597
* 是否开启 http2 */
1259012598
enableHttp2?: boolean
12591-
/** 需要基础库: `3.7.0`
12592-
*
12593-
* 等同于 enableQuic 参数。enableQuic 和 enableHttp3 其中一个参数传 true 就会生效。目前只在 Android 端生效。 */
12594-
enableHttp3?: boolean
1259512599
/** 是否开启 profile,默认开启。开启后可在接口回调的 res.profile 中查看性能调试信息。目前仅 iOS 端支持。 */
1259612600
enableProfile?: boolean
1259712601
/** 需要基础库: `2.10.4`
@@ -20269,7 +20273,7 @@ userCryptoManager.getRandomValues({
2026920273
*
2027020274
* 设置倍速播放 */
2027120275
playbackRate(
20272-
/** 倍率,支持 0.5/0.8/1.0/1.25/1.5,2.6.3 起支持 2.0 倍速 */
20276+
/** 倍率,支持 0.5/0.8/1.0/1.25/1.5,2.6.3 起支持 2.0 倍速,3.7.5 起支持 3.0/4.0 倍速 */
2027320277
rate: number
2027420278
): void
2027520279
/** [VideoContext.reconnectCasting()](https://developers.weixin.qq.com/miniprogram/dev/api/media/video/VideoContext.reconnectCasting.html)
@@ -23707,7 +23711,7 @@ wx.getGroupEnterInfo({
2370723711
*
2370823712
* **Tips**
2370923713
*
23710-
* - 如需要展示群名称,小程序可以使用[开放数据组件](https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html)
23714+
* - 如需要展示群名称,小程序可以使用[开放数据组件](https://developers.weixin.qq.com/miniprogram/dev/component/open-ability/open-data.html)
2371123715
* - 小游戏可以通过 `wx.getGroupInfo` 接口获取群名称 */
2371223716
getGroupEnterInfo(option: GetGroupEnterInfoOption): void
2371323717
/** [wx.getHCEState(Object object)](https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc-hce/wx.getHCEState.html)
@@ -24117,7 +24121,7 @@ wx.getSetting({
2411724121
*
2411824122
* **Tips**
2411924123
*
24120-
* - 如需要展示群名称,小程序可以使用 [开放数据组件](https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html)
24124+
* - 如需要展示群名称,小程序可以使用 [开放数据组件](https://developers.weixin.qq.com/miniprogram/dev/component/open-ability/open-data.html)
2412124125
* - 小游戏可以通过 [`wx.getGroupInfo`](#) 接口获取群名称 */
2412224126
getShareInfo<T extends GetShareInfoOption = GetShareInfoOption>(
2412324127
option: T

0 commit comments

Comments
 (0)