From 75c9a59c81b618d1fea1fdc53917a12d6ca00272 Mon Sep 17 00:00:00 2001 From: Ryqsky <627924921@qq.com> Date: Mon, 18 Sep 2023 16:39:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20component=20?= =?UTF-8?q?=E7=9A=84=20properties=20=E5=8F=AF=E4=BB=A5=20as=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=8E=A8=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/wx/lib.wx.component.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/wx/lib.wx.component.d.ts b/types/wx/lib.wx.component.d.ts index 65cc465..b00ae3b 100644 --- a/types/wx/lib.wx.component.d.ts +++ b/types/wx/lib.wx.component.d.ts @@ -103,6 +103,7 @@ declare namespace WechatMiniprogram.Component { | BooleanConstructor | ArrayConstructor | ObjectConstructor + | unknown | null type ValueType = T extends null ? any @@ -116,6 +117,8 @@ declare namespace WechatMiniprogram.Component { ? any[] : T extends ObjectConstructor ? IAnyObject + : T extends unknown + ? T : never type FullProperty = { /** 属性类型 */ @@ -139,6 +142,7 @@ declare namespace WechatMiniprogram.Component { | FullProperty | FullProperty | FullProperty + | FullProperty | FullProperty type ShortProperty = | StringConstructor