From 9a2d984d6aa380ee7d3446b169f5e0403b100c39 Mon Sep 17 00:00:00 2001 From: Ziga Zajc Date: Mon, 29 Apr 2024 10:37:11 +0200 Subject: [PATCH 1/2] Update index.d.ts --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 7b3307f7..5ba6c506 100644 --- a/index.d.ts +++ b/index.d.ts @@ -81,14 +81,14 @@ export class Registry { /** * Gets the Content-Type of the metrics for use in the response headers. */ - readonly contentType: RegistryContentType; + readonly contentType: PrometheusContentType | OpenMetricsContentType; /** * Set the content type of a registry. Used to change between Prometheus and * OpenMetrics versions. * @param contentType The type of the registry */ - setContentType(contentType: RegistryContentType): void; + setContentType(contentType: PrometheusContentType | OpenMetricsContentType): void; /** * Merge registers From b7d6ef8a687accec256bbcafd6dbe5689dd4337e Mon Sep 17 00:00:00 2001 From: Ziga Zajc Date: Mon, 29 Apr 2024 11:25:46 +0200 Subject: [PATCH 2/2] Update index.d.ts --- index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 5ba6c506..3c99bb25 100644 --- a/index.d.ts +++ b/index.d.ts @@ -88,7 +88,9 @@ export class Registry { * OpenMetrics versions. * @param contentType The type of the registry */ - setContentType(contentType: PrometheusContentType | OpenMetricsContentType): void; + setContentType( + contentType: PrometheusContentType | OpenMetricsContentType, + ): void; /** * Merge registers