-
Notifications
You must be signed in to change notification settings - Fork 112
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
wx.onNeedPrivacyAuthorization方法的参数类型错误 #309
Comments
你再看仔细点? |
https://github.com/wechat-miniprogram/api-typings/blob/master/types/wx/lib.wx.api.d.ts#L25493-L25496 onNeedPrivacyAuthorization(
/** 隐私接口需要用户授权事件的监听函数 */
listener: OnNeedPrivacyAuthorizationCallback
): void https://github.com/wechat-miniprogram/api-typings/blob/master/types/wx/lib.wx.api.d.ts#L30422-L30424 type OnNeedPrivacyAuthorizationCallback = (
res: GeneralCallbackResult
) => void interface GeneralCallbackResult {
/** 错误信息 */
errMsg: string
} |
@wsli10 有临时解决方案吗 |
@wsli10 好的谢谢大佬 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
正确的类型应该是一个resolve和一个info,然而实际上是{errMsg:string}
The text was updated successfully, but these errors were encountered: