api-typings
api-typings copied to clipboard
Property 'CloudId' does not exist on type WxCloud
is somethin' wrong with my code? i just follow official documentation with "wx.getWeRunData" with cloud develop
this is my code down below
wx.getWeRunData({
success(res: WechatMiniprogram.GetWeRunDataSuccessCallbackResult) {
let cloudId = res.cloudID
wx.cloud.callFunction({
name: 'myFunction',
data: {
weRunData: wx.cloud.CloudID(cloudId), // at this line, the vscode editor errors me
}
})
}
})