api-typings icon indicating copy to clipboard operation
api-typings copied to clipboard

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

Open xTreeRoot opened this issue 1 month ago • 0 comments

Bug Type: Api

Environment

  • miniprogram-api-typings 3.12.1"
  • libVersion 3.1.4

Reproduction

Related API

wx.openBusinessView()

code:

bug:

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

image

now:

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

image

Steps to reproduce

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

xTreeRoot avatar Jun 05 '24 02:06 xTreeRoot