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