Skip to content

Commit 9a2d984

Browse files
authored
Update index.d.ts
1 parent 1c7a4c0 commit 9a2d984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ export class Registry<RegistryContentType = PrometheusContentType> {
8181
/**
8282
* Gets the Content-Type of the metrics for use in the response headers.
8383
*/
84-
readonly contentType: RegistryContentType;
84+
readonly contentType: PrometheusContentType | OpenMetricsContentType;
8585

8686
/**
8787
* Set the content type of a registry. Used to change between Prometheus and
8888
* OpenMetrics versions.
8989
* @param contentType The type of the registry
9090
*/
91-
setContentType(contentType: RegistryContentType): void;
91+
setContentType(contentType: PrometheusContentType | OpenMetricsContentType): void;
9292

9393
/**
9494
* Merge registers

0 commit comments

Comments
 (0)