Skip to content

Commit 3ad3f3f

Browse files
thierrylamarrethierry
and
thierry
authored
fix getMetricsAsArray type (#477)
* fix getMetricsAsArray type * add changelog for getMetricsAsArray type fix * move changelog to correct section Co-authored-by: thierry <[email protected]>
1 parent 05e5c3b commit 3ad3f3f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Changed
1313

14+
- types: fixed type for `registry.getMetricsAsArray()`
15+
1416
- changed: typedef for pushgateway to reflect js implementation.
1517

1618
Pushgateway's typedef were missing promise return type. That was

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class Registry {
3434
/**
3535
* Get all metrics as objects
3636
*/
37-
getMetricsAsArray(): Promise<metric[]>;
37+
getMetricsAsArray(): metric[];
3838

3939
/**
4040
* Remove a single metric

0 commit comments

Comments
 (0)