Closed zigazajc007 closed 5 months ago
@zigazajc007 Did you solve this?
@zigazajc007 Did you solve this?
I didn't.
The static prop is just missing from the types, it works at runtime. You can also do Prometheus.openMetricsContentType
which is present in types
Thanks @SimenB but this is actualy still not working with the latest version
error TS2345: Argument of type '"application/openmetrics-text; version=1.0.0; charset=utf-8"' is not assignable to parameter of type '"text/plain; version=0.0.4; charset=utf-8"'.
Hah. Still only a type error, so a @ts-ignore
should do it.
Happy to take a PR fixing it properly