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
Allow Bluebird to be assignable to es2016 standard Promise: #29
Allow Bluebird to be assignable to es2016 standard Promise: #29
Conversation
* Add overload for 2-argument `.then` call.
@Strate Could you correct the changes to the comment block? |
@blakeembrey in what case? Just a fix argument names or split comment into four, as in standard Promise? |
aught, there is CI issues, I'll fix it now. |
Sorry, correcting the changes just meant to remove the unnecessary change in the comment block (which did result in a linting failure). |
@blakeembrey, what do you think to implement |
@Strate It's implemented as |
And remove |
nvm, we should add overrides to change return type of |
@Strate I might actually have to test this repo out a little, but unless I'm missing something, isn't it odd that the tests passed before? Since |
@blakeembrey nope, because issue was: "bluebird is not assignable to es6 promise", not "es6 promise is not assignable to bluebird". |
Ah, this is a huge PITA. This change actually breaks anyone using TypeScript < beta. I just run into it, can't use |
Interestingly, the definition I've always used in https://github.com/types/npm-es6-promise/blob/master/dist/es6-promise.d.ts for |
@blakeembrey is that definition assignable to es6 promise from ts 2.0? I don't think so... |
Yes, it is. I tested it, I was just asking for confirmation. At least, I'm using it with 2.0 through |
Add overload for 2-argument
.then
call.see DefinitelyTyped/DefinitelyTyped#11027