update types to correct transformLabels returning

`transformLabels` should return void as the library expects
the labels object to be modified in place and does not use the return value
This commit is contained in:
Gabriel Castro
2019-07-22 16:38:14 -04:00
committed by GitHub
parent a21bd439cf
commit faeeb7b57b

2
types/index.d.ts vendored
View File

@@ -15,7 +15,7 @@ declare namespace express_prom_bundle {
type NormalizePathEntry = [string | RegExp, string];
type NormalizePathFn = (req: Request, opts: Opts) => string;
type NormalizeStatusCodeFn = (res: Response) => number | string;
type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => Labels;
type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => void;
interface Opts {
autoregister?: boolean;