Itai Pelles
Itai Pelles
@jameshoward Hi, i'm running into the exact same issue. Did you find some workaround?
I actually ran into this issue in cases that are a bit more complex, for example like Promise.prototype.then: https://github.com/ternjs/tern/blob/master/defs/ecmascript.json#L22 Again, since the return type is !custom, toString does not indicate...
Cool. But still, even if Promise will be solved, I think custom return types need a way to define how should their toString behave.
Try getting the type of Promise.then, and see that the toString has no return type