Skip to content
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

d.ts 中没有包含Promise处理 #2221

Closed
hairyf opened this issue Oct 24, 2020 · 5 comments
Closed

d.ts 中没有包含Promise处理 #2221

hairyf opened this issue Oct 24, 2020 · 5 comments

Comments

@hairyf
Copy link

hairyf commented Oct 24, 2020

https://uniapp.dcloud.io/api/README?id=promise-%e5%b0%81%e8%a3%85
1603566190(1)

@hairyf
Copy link
Author

hairyf commented Oct 25, 2020

现在只能用这种曲线救国的方式覆盖上去了,官方什么时候加上去吧
1603596395(1)
image
image

@zhetengbiji
Copy link
Collaborator

因有调整计划,暂未统一处理

@StrivingRabbit
Copy link
Collaborator

@StrivingRabbit
Copy link
Collaborator

关于api 的 Promise 化类型提示。除 uni.request 有返回值同步的方法(即以 sync 结束)以 create 开头的方法以 manager 结束的方法返回 task 的 api 暂不处理外,其他可以升级 @dcloudio/[email protected] 试试看

@StrivingRabbit
Copy link
Collaborator

部分 api promise 化提示已支持,后续进度请跟踪 #3009 查看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants