From e30ecd1c86615b93254626a8c8570c084d63cb8d Mon Sep 17 00:00:00 2001 From: Asad Usmonov Date: Thu, 31 Jul 2025 22:18:28 +0500 Subject: [PATCH] feat: add constructor with content type param to Registry class in TypeScript definitions --- index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 8cf983a7..617a1524 100644 --- a/index.d.ts +++ b/index.d.ts @@ -22,8 +22,13 @@ export type RegistryContentType = * Container for all registered metrics */ export class Registry< - BoundRegistryContentType extends RegistryContentType = PrometheusContentType, + BoundRegistryContentType extends RegistryContentType = RegistryContentType, > { + /** + * @param regContentType The content type of the registry + */ + constructor(regContentType?: RegistryContentType) + /** * Get string representation for all metrics */