-
Notifications
You must be signed in to change notification settings - Fork 1.4k
typings: Consider using PromiseLike instead of Promise #960
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
Comments
It seems to suggest that |
An alternative would be using
|
|
@jamestalmage That only applies when you annotate an async function with a return type. |
Fixed by 1dd6d5b. |
Great! Thanks. I'm working on Are you planning to do a release soon? |
Uh oh!
There was an error while loading. Please reload this page.
Using the global
Promise
causes incompatibility error:unional#1
Using
PromiseLike
should solve this problem.The text was updated successfully, but these errors were encountered: