File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 50
50
"eslint-plugin-prettier" : " 3.4.1" ,
51
51
"lint-staged" : " 10.5.4" ,
52
52
"prettier" : " 2.8.8" ,
53
- "prom-client" : " 13 .2.0" ,
53
+ "prom-client" : " 14 .2.0" ,
54
54
"semantic-release" : " 22.0.7" ,
55
55
"tap" : " 16.3.8"
56
56
}
Original file line number Diff line number Diff line change 1
1
import { Writable } from 'readable-stream' ;
2
2
import { AbstractLogger } from 'abslog' ;
3
- import PrometheusClient , { Registry } from 'prom-client' ;
3
+ import * as PrometheusClient from 'prom-client' ;
4
4
5
5
declare class PrometheusConsumer extends Writable {
6
6
constructor ( options : PrometheusConsumer . PrometheusConsumerOptions ) ;
@@ -9,13 +9,14 @@ declare class PrometheusConsumer extends Writable {
9
9
metric : string ,
10
10
config : PrometheusConsumer . PrometheusConsumerOverrideConfig ,
11
11
) : 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' ] ;
14
15
}
15
16
16
17
declare namespace PrometheusConsumer {
17
18
export type PrometheusConsumerOptions = {
18
- client : PrometheusClient ;
19
+ client : typeof PrometheusClient ;
19
20
logger ?: AbstractLogger ;
20
21
bucketStepFactor ?: number ;
21
22
bucketStepCount ?: number ;
You can’t perform that action at this time.
0 commit comments