-
Notifications
You must be signed in to change notification settings - Fork 393
Open
Description
I'm trying to configure prom-client to work with the global default Registry set to OpenMetrics format.
As described in the README this requires:
// set the content type to OpenMetrics format
import client from 'prom-client';
client.register.setContentType(
client.Registry.OPENMETRICS_CONTENT_TYPE
);
Using this code, TS throws the following error:
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"'
I'm able to workaround it only type-casting it to any
but it really seems an issue in the TS interface
Affected version: 15.1.3
NodeJS version 20.12
Foozie3Moons and jirutka
Metadata
Metadata
Assignees
Labels
No labels