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
Promiseinterface toes5.d.ts(and subsequentlylib.d.ts). This allows for DOM APIs that returnPromiseto be typed accurately.The PR adds a specialized error message for missing
Promisevalue declaration whilePromisetype is available.Fixes: #13947