Skip to content

Commit

Permalink
fix: add missing Registry types (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Apr 16, 2024
1 parent 99b25a4 commit 8921952
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- Enable `bun.js` by catching `NotImplemented` error (Fixes [#570](https://github.com/siimon/prom-client/issues/570))
- Add `Registry.PROMETHEUS_CONTENT_TYPE` and `Registry.OPENMETRICS_CONTENT_TYPE` constants to the TypeScript types

### Added

- Enable `bun.js` by catching `NotImplemented` error (Fixes [#570](https://github.com/siimon/prom-client/issues/570))

[unreleased]: https://github.com/siimon/prom-client/compare/v15.1.0...HEAD

## [15.1.1] - 2024-03-26
Expand Down
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ export class Registry<RegistryContentType = PrometheusContentType> {
* @param registers The registers you want to merge together
*/
static merge(registers: Registry[]): Registry;

/**
* HTTP Prometheus Content-Type for metrics response headers.
*/
static PROMETHEUS_CONTENT_TYPE: PrometheusContentType;

/**
* HTTP OpenMetrics Content-Type for metrics response headers.
*/
static OPENMETRICS_CONTENT_TYPE: OpenMetricsContentType;
}
export type Collector = () => void;

Expand Down

0 comments on commit 8921952

Please sign in to comment.