prom-client
prom-client copied to clipboard
Fixed types
Related to issue https://github.com/siimon/prom-client/issues/614
Registry<RegistryContentType = PrometheusContentType>
As PrometheusContentType
is assigned to RegistryContentType
, the typescript will automatically exclude OpenMetricsContentType
from RegistryContentType
in Registry
. So to solve this issue, we can just manually tell typescript that provided value can be PrometheusContentType
or OpenMetricsContentType
.
Is this everything that is needed or do I still need to write a Changelog?
I messed around with the lint error in #630, and I might've accidentally fixed this? Could you check? If still broken, this needs a quick rebase 🙂
Tried method in https://github.com/siimon/prom-client/pull/630 but it doesn't work.
I'm using typescript from Bun.
Fair - mind rebasing? 🙂