-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Move Promise<T>
declaration to lib.es5.d.ts
#14053
Conversation
…declaration when `Promise` type is available
Hey there @mhegazy, Can you please tell me how do I, as of now, avoid taking the Up until Thanks! |
I am afraid there is not a way to do this now. but this is only the |
Sure, I will gladly elaborate :) The thing is I am using Bluebird as a polyfill for promises by setting the global The only way I found to avoid clashing between the "bundled" Promise type and bluebird is to exclude the former from I have noticed the differentiation made between the Promise interface and value but have not been able to use that to my advantage... Semantically what I would like is to declare I would be happy to learn about any kind of solution or workaround. Thanks again. |
@mhegazy Do you have any new insights on this? Thanks a lot! |
Move the declaration of the
Promise
interface toes5.d.ts
(and subsequentlylib.d.ts
). This allows for DOM APIs that returnPromise
to be typed accurately.The PR adds a specialized error message for missing
Promise
value declaration whilePromise
type is available.Fixes: #13947