We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 560a5a9 commit f87a44fCopy full SHA for f87a44f
types/wx/lib.wx.api.d.ts
@@ -21408,10 +21408,10 @@ Page({
21408
* 在插件中使用:不支持
21409
*
21410
* 创建共享变量 `SharedValue`,用于跨线程共享数据和驱动动画。 */
21411
- shared(
+ shared<T>(
21412
/** 初始值,可通过 `.value` 属性进行读取和修改。类型可以是 `number | string | bool | null | undefined | Object | Array | Function`。 */
21413
- initialValue: any
21414
- ): SharedValue
+ initialValue: T
+ ): SharedValue<T>
21415
/** [function worklet.runOnJS(function fn)](https://developers.weixin.qq.com/miniprogram/dev/api/ui/worklet/tool-function/worklet.runOnJS.html)
21416
21417
0 commit comments