From 2a5e25dd7742eeea6ba20256da5ee5a1969053ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KARASZI=20Istv=C3=A1n?= Date: Tue, 30 Apr 2019 22:46:49 +0200 Subject: [PATCH] Fix line ending --- types/index.d.ts | 118 +++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 6e3366c..0e3d9f2 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,59 +1,59 @@ -// TypeScript Version: 2.8 - -import { Request, RequestHandler, Response } from 'express'; -import { DefaultMetricsCollectorConfiguration } from 'prom-client'; - -export {}; - -export = express_prom_bundle; - -declare namespace express_prom_bundle { - interface Labels { - [key: string]: string | number; - } - - type NormalizePathEntry = [string | RegExp, string]; - type NormalizePathRegexs = NormalizePathEntry[]; - type NormalizePathFn = (req: Request, opts: Opts) => string; - type NormalizeStatusCodeFn = (res: Response) => number | string; - type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => Labels; - - interface Opts { - autoregister?: boolean; - buckets?: number[]; - - customLabels?: { [key: string]: any }; - - includeStatusCode?: boolean; - includeMethod?: boolean; - includePath?: boolean; - includeUp?: boolean; - - metricType?: 'summary' | 'histogram'; - metricsPath?: string; - promClient?: { collectDefaultMetrics?: DefaultMetricsCollectorConfiguration }; - normalizePath?: NormalizePathRegexs | NormalizePathFn; - formatStatusCode?: NormalizeStatusCodeFn; - transformLabels?: TransformLabelsFn; - - // https://github.com/disjunction/url-value-parser#options - urlValueParser?: { - minHexLength?: number; - minBase64Length?: number; - replaceMasks?: string[]; - extraMasks?: string[]; - }; - } - - const normalizePath: NormalizePathFn; - const normalizeStatusCode: NormalizeStatusCodeFn; - - function clusterMetrics(): RequestHandler; -} - -interface express_prom_bundle { - normalizePath: express_prom_bundle.NormalizePathFn; - normalizeStatusCode: express_prom_bundle.NormalizeStatusCodeFn; -} - -declare function express_prom_bundle(opts: express_prom_bundle.Opts): RequestHandler; +// TypeScript Version: 2.8 + +import { Request, RequestHandler, Response } from 'express'; +import { DefaultMetricsCollectorConfiguration } from 'prom-client'; + +export {}; + +export = express_prom_bundle; + +declare namespace express_prom_bundle { + interface Labels { + [key: string]: string | number; + } + + type NormalizePathEntry = [string | RegExp, string]; + type NormalizePathRegexs = NormalizePathEntry[]; + type NormalizePathFn = (req: Request, opts: Opts) => string; + type NormalizeStatusCodeFn = (res: Response) => number | string; + type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => Labels; + + interface Opts { + autoregister?: boolean; + buckets?: number[]; + + customLabels?: { [key: string]: any }; + + includeStatusCode?: boolean; + includeMethod?: boolean; + includePath?: boolean; + includeUp?: boolean; + + metricType?: 'summary' | 'histogram'; + metricsPath?: string; + promClient?: { collectDefaultMetrics?: DefaultMetricsCollectorConfiguration }; + normalizePath?: NormalizePathRegexs | NormalizePathFn; + formatStatusCode?: NormalizeStatusCodeFn; + transformLabels?: TransformLabelsFn; + + // https://github.com/disjunction/url-value-parser#options + urlValueParser?: { + minHexLength?: number; + minBase64Length?: number; + replaceMasks?: string[]; + extraMasks?: string[]; + }; + } + + const normalizePath: NormalizePathFn; + const normalizeStatusCode: NormalizeStatusCodeFn; + + function clusterMetrics(): RequestHandler; +} + +interface express_prom_bundle { + normalizePath: express_prom_bundle.NormalizePathFn; + normalizeStatusCode: express_prom_bundle.NormalizeStatusCodeFn; +} + +declare function express_prom_bundle(opts: express_prom_bundle.Opts): RequestHandler;