Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xTreeRoot opened this issue Jun 5, 2024 · 0 comments

Comments

@xTreeRoot
Copy link

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 才可以消除消除错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant