You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to start a timer on a specific label and am doing something like this in my code:
const end = histogram.labels({ mylabels }).startTimer();
// some stuff
const seconds = end();
But I was surprised to see that this startTimer in the ts definitions doesn't return number and supposedly returns void. In testing, my code works and it still returns a number so I believe it's just a problem with the ts definition.
The text was updated successfully, but these errors were encountered:
Hi,
I was wondering if the following line should return number instead of void.
prom-client/index.d.ts
Line 566 in a88a5c3
I wanted to start a timer on a specific label and am doing something like this in my code:
But I was surprised to see that this startTimer in the ts definitions doesn't return number and supposedly returns void. In testing, my code works and it still returns a number so I believe it's just a problem with the ts definition.
The text was updated successfully, but these errors were encountered: