mirror of
https://github.com/BreizhHardware/express-prom-bundle.git
synced 2026-01-18 16:27:28 +01:00
Update index.d.ts
Custom labels was added as an option but never added to the typescript definition file, breaking the usage during typescript compilation.
This commit is contained in:
6
index.d.ts
vendored
6
index.d.ts
vendored
@@ -10,7 +10,9 @@ interface Labels {
|
||||
interface Opts {
|
||||
autoregister?: boolean;
|
||||
buckets?: [number];
|
||||
|
||||
|
||||
customLabels: { [key: string]: any };
|
||||
|
||||
includeStatusCode?: boolean;
|
||||
includeMethod?: boolean;
|
||||
includePath?: boolean;
|
||||
@@ -21,7 +23,7 @@ interface Opts {
|
||||
promClient?: DefaultMetricsCollectorConfiguration;
|
||||
normalizePath?: NormalizePathRegexs;
|
||||
formatStatusCode?: (res: express.Response) => number | string;
|
||||
|
||||
|
||||
transformLabels: (
|
||||
labels: Labels,
|
||||
req: express.Request,
|
||||
|
||||
Reference in New Issue
Block a user