File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 5050 "eslint-plugin-prettier" : " 3.4.1" ,
5151 "lint-staged" : " 10.5.4" ,
5252 "prettier" : " 2.8.8" ,
53- "prom-client" : " 13 .2.0" ,
53+ "prom-client" : " 14 .2.0" ,
5454 "semantic-release" : " 22.0.7" ,
5555 "tap" : " 16.3.8"
5656 }
Original file line number Diff line number Diff line change 11import { Writable } from 'readable-stream' ;
22import { AbstractLogger } from 'abslog' ;
3- import PrometheusClient , { Registry } from 'prom-client' ;
3+ import * as PrometheusClient from 'prom-client' ;
44
55declare class PrometheusConsumer extends Writable {
66 constructor ( options : PrometheusConsumer . PrometheusConsumerOptions ) ;
@@ -9,13 +9,14 @@ declare class PrometheusConsumer extends Writable {
99 metric : string ,
1010 config : PrometheusConsumer . PrometheusConsumerOverrideConfig ,
1111 ) : void ;
12- metrics ( ) : ReturnType < Registry [ 'metrics' ] > ;
13- contentType ( ) : Registry [ 'contentType' ] ;
12+ readonly registry : PrometheusClient . Registry ;
13+ metrics ( ) : ReturnType < PrometheusClient . Registry [ 'metrics' ] > ;
14+ contentType ( ) : PrometheusClient . Registry [ 'contentType' ] ;
1415}
1516
1617declare namespace PrometheusConsumer {
1718 export type PrometheusConsumerOptions = {
18- client : PrometheusClient ;
19+ client : typeof PrometheusClient ;
1920 logger ?: AbstractLogger ;
2021 bucketStepFactor ?: number ;
2122 bucketStepCount ?: number ;
You can’t perform that action at this time.
0 commit comments