Skip to content

Commit

Permalink
Merge branch 'wechat-miniprogram:master' into behavior-ts-support
Browse files Browse the repository at this point in the history
  • Loading branch information
lv-z-l authored Sep 3, 2024
2 parents 3a100d0 + 0a76c78 commit 56d3e56
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion types/wx/lib.wx.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ declare namespace WechatMiniprogram.Component {
? ValueType<T>
: FullPropertyToData<Exclude<T, ShortProperty>>
type ArrayOrObject = ArrayConstructor | ObjectConstructor
// 支持 Array、Object 的 property 通过 value as ValueType 的方式明确 property 的类型
type FullPropertyToData<T extends AllFullProperty> = T['type'] extends ArrayOrObject ? unknown extends T['value'] ? ValueType<T['type']> : T['value'] : ValueType<T['type']>
type PropertyOptionToData<P extends PropertyOption> = {
[name in keyof P]: PropertyToData<P[name]>
Expand Down

0 comments on commit 56d3e56

Please sign in to comment.