From 266b86e8d077e05732e8339fcdfe6bdfdcde6707 Mon Sep 17 00:00:00 2001 From: Aysajan Eziz Date: Mon, 13 Jul 2026 01:02:15 +0000 Subject: [PATCH] fix: prometheus/client_js#582 Signed-off-by: Aysajan Eziz --- index.d.ts | 2 +- test/typescript.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 8c0ebb2c..ad40e625 100644 --- a/index.d.ts +++ b/index.d.ts @@ -304,7 +304,7 @@ type MetricValueWithName = MetricValue & { type LabelValues = T extends NoLabelNameType ? Partial> - : Partial>; + : Partial>; interface MetricConfiguration { name: string; diff --git a/test/typescript.ts b/test/typescript.ts index 80d899ce..2a0ff380 100644 --- a/test/typescript.ts +++ b/test/typescript.ts @@ -18,8 +18,10 @@ const registry = new Registry(); const counter = new Counter({ name: 'typescript_test_counter', help: 'TypeScript test counter', + labelNames: ['handler'], registers: [registry], }); +counter.inc({ handler: ['/a', '/b'] }); const metricsText: Promise = registry.getMetricsAsString(counter); const gatewayWithRegistry = new Pushgateway('http://127.0.0.1:9091', registry);