wechat-miniprogram / wechat-miniprogram/api-typings
Property 'CloudId' does not exist on type WxCloud
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 803
- Forks
- 117
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
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
}
})
}
})
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the TypeScript declaration for WxCloud and compare the documented wx.cloud.CloudID call with the available member names. Confirm the expected CloudID typing and verify that the provided example type-checks after the declaration is corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100