wechat-miniprogram / wechat-miniprogram/api-typings
[request]希望可以给callFunction传递泛型
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 803
- Forks
- 117
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
想要这样的效果
interface CallFunctionResult<T> extends IAPISuccessParam {
result: T
}
callFunction<T>(param: OQ<ICloud.CallFunctionParam>): Promise<ICloud.CallFunctionResult<T>>
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
Locate the TypeScript declaration for callFunction and the existing ICloud call-function result type. Compare it with the requested generic signature, then verify that the result field can carry the caller's type without breaking existing declarations; the issue does not mention a test file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100