RuntimeTools / appmetrics

Node Application Metrics provides a foundational infrastructure for collecting resource and performance monitoring data for Node.js-based applications.
https://developer.ibm.com/open/node-application-metrics/
Apache License 2.0
974 stars 125 forks source link

instanceof Promise always false #609

Open mytlogos opened 5 years ago

mytlogos commented 5 years ago

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'?