We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c7a4c0 commit 9a2d984Copy full SHA for 9a2d984
index.d.ts
@@ -81,14 +81,14 @@ export class Registry<RegistryContentType = PrometheusContentType> {
81
/**
82
* Gets the Content-Type of the metrics for use in the response headers.
83
*/
84
- readonly contentType: RegistryContentType;
+ readonly contentType: PrometheusContentType | OpenMetricsContentType;
85
86
87
* Set the content type of a registry. Used to change between Prometheus and
88
* OpenMetrics versions.
89
* @param contentType The type of the registry
90
91
- setContentType(contentType: RegistryContentType): void;
+ setContentType(contentType: PrometheusContentType | OpenMetricsContentType): void;
92
93
94
* Merge registers
0 commit comments