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:
Aaron Smith
2019-04-09 13:54:17 -06:00
committed by GitHub
parent d405e3f584
commit 5f39d8f357

6
index.d.ts vendored
View File

@@ -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,