diff --git a/types/wx/lib.wx.component.d.ts b/types/wx/lib.wx.component.d.ts index 28638d4..098c880 100644 --- a/types/wx/lib.wx.component.d.ts +++ b/types/wx/lib.wx.component.d.ts @@ -183,7 +183,6 @@ declare namespace WechatMiniprogram.Component { ? ValueType : FullPropertyToData> type ArrayOrObject = ArrayConstructor | ObjectConstructor - // 支持 Array、Object 的 property 通过 value as ValueType 的方式明确 property 的类型 type FullPropertyToData = T['type'] extends ArrayOrObject ? unknown extends T['value'] ? ValueType : T['value'] : ValueType type PropertyOptionToData

= { [name in keyof P]: PropertyToData