wechat-miniprogram / api-typings

Type definitions for APIs of Wechat Mini Program in TypeScript
MIT License
743 stars 112 forks source link

[Api][openBusinessView][V2.27.3] [TS] TS调用openBusinessView的时候缺少函数类型 #324

Open xTreeRoot opened 5 months ago

xTreeRoot commented 5 months ago

Bug Type: Api

Environment

now:

 (wx as any).openBusinessView({
      businessType: 'wxpayScoreUse',
      extraData: res.data,
    })

image

Steps to reproduce

1.类型“Wx”上不存在属性“openBusinessView” 2.目前仅能使用as 才可以消除消除错误