Skip to content

Commit f87a44f

Browse files
authored
Update lib.wx.api.d.ts
1 parent 560a5a9 commit f87a44f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21408,10 +21408,10 @@ Page({
2140821408
* 在插件中使用:不支持
2140921409
*
2141021410
* 创建共享变量 `SharedValue`,用于跨线程共享数据和驱动动画。 */
21411-
shared(
21411+
shared<T>(
2141221412
/** 初始值,可通过 `.value` 属性进行读取和修改。类型可以是 `number | string | bool | null | undefined | Object | Array | Function`。 */
21413-
initialValue: any
21414-
): SharedValue
21413+
initialValue: T
21414+
): SharedValue<T>
2141521415
/** [function worklet.runOnJS(function fn)](https://developers.weixin.qq.com/miniprogram/dev/api/ui/worklet/tool-function/worklet.runOnJS.html)
2141621416
*
2141721417
* 在插件中使用:不支持

0 commit comments

Comments
 (0)