Skip to content

Commit

Permalink
fix getMetricsAsArray type (#477)
Browse files Browse the repository at this point in the history
* fix getMetricsAsArray type

* add changelog for getMetricsAsArray type fix

* move changelog to correct section

Co-authored-by: thierry <thierry@tumblr.com>
  • Loading branch information
thierrylamarre and thierry authored Nov 13, 2021
1 parent 05e5c3b commit 3ad3f3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ project adheres to [Semantic Versioning](http://semver.org/).

### Changed

- types: fixed type for `registry.getMetricsAsArray()`

- changed: typedef for pushgateway to reflect js implementation.

Pushgateway's typedef were missing promise return type. That was
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Registry {
/**
* Get all metrics as objects
*/
getMetricsAsArray(): Promise<metric[]>;
getMetricsAsArray(): metric[];

/**
* Remove a single metric
Expand Down

0 comments on commit 3ad3f3f

Please sign in to comment.