-
-
Notifications
You must be signed in to change notification settings - Fork 870
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
[TS] Thenable vs. PromiseLike #717
Comments
Sounds reasonable. There’s only two reasons for the custom promise to exist:
|
@blakeembrey thank you. Does it mean that should be a major version change? |
@blakeembrey What exactly do you mean?
I'm using TS most of the time compiling down to ES5 without any adjustments necessary to use Promises. |
@krenor Phone typo, sorry. Was meant to say without. But TypeScript ported @epoberezkin I don't think so. Pretty sure the version support is the same as other features your using, so all good. |
Released |
If I understand it correctly
Thenable
is nothing more than a disguised Promise, right? Is there a reason why some libraries useThenable
rather than the official typescript Promise declaration?Using
Thenable
is not possible with native Promises.Will always compile with an error:
Removing the
Thenable
Interface and replacing references withPromiseLike
in the typings get rid of the error. Am I safe to provide a PR which does that or is there a reason behindThenable
I seem to miss?/cc @blakeembrey
The text was updated successfully, but these errors were encountered: