appmetrics icon indicating copy to clipboard operation
appmetrics copied to clipboard

instanceof Promise always false

Open mytlogos opened this issue 6 years ago • 0 comments
trafficstars

As this module seems to wrap the native Promise in NodeJs? the 'promise instanceof Promise' check will always return false.

I used a 'promise.then' check as a replacement, but typescript does not seem to accept it readily.

Is there a way to still use 'instanceof Promise'?

mytlogos avatar Sep 06 '19 18:09 mytlogos