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

Property 'CloudId' does not exist on type WxCloud

Open JesseWeb opened this issue 4 years ago • 0 comments

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
               }
            })
         }
  })

JesseWeb avatar Jun 20 '20 16:06 JesseWeb