From ec16ab544ef2f8fe20bd3cb2084a98e97e944d01 Mon Sep 17 00:00:00 2001 From: Int <50065494+dhlolo@users.noreply.github.com> Date: Fri, 27 Oct 2023 11:40:22 +0800 Subject: [PATCH] fix: there is no correct ref for properties in this.setData You can get ref from this.setData({ keyA }) where keyA is a key of data, but when it is property, it can not be. --- types/wx/lib.wx.component.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wx/lib.wx.component.d.ts b/types/wx/lib.wx.component.d.ts index ce803f5..7017180 100644 --- a/types/wx/lib.wx.component.d.ts +++ b/types/wx/lib.wx.component.d.ts @@ -28,7 +28,7 @@ declare namespace WechatMiniprogram.Component { TCustomInstanceProperty extends IAnyObject = {}, TIsPage extends boolean = false > = InstanceProperties & - InstanceMethods & + InstanceMethods> & TMethod & (TIsPage extends true ? Page.ILifetime : {}) & TCustomInstanceProperty & {