@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
14 lines • 536 B
TypeScript
import { CollectFn, Gauge as IGauge, LabelKeys, LabelsGeneric } from "@lodestar/utils";
import { Gauge } from "prom-client";
/**
* Extends the prom-client Gauge to be able to add multiple collect functions after instantiation
*/
export declare class GaugeExtra<Labels extends LabelsGeneric> extends Gauge<LabelKeys<Labels>> implements IGauge<Labels> {
private collectFns;
addCollect(collectFn: CollectFn<Labels>): void;
/**
* @override Metric.collect
*/
collect(): void;
}
//# sourceMappingURL=gauge.d.ts.map