RuntimeTools / appmetrics-dash

A data visualizer that uses " Node Application Metrics" (appmetrics) to monitor and display Node.js application data as a html web application.
Other
456 stars 55 forks source link

instanceof Promise always false #180

Closed mytlogos closed 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'?

mytlogos commented 5 years ago

Ok, this seems to be the wrong place for this, as it should be an issue of 'appmetric' and not this module.