From 83974afd45e46522892dda3f197622d0cfb59492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Wed, 13 Sep 2023 08:55:59 +0200 Subject: [PATCH] fix: exclude undefined if default value specified #1460 --- lib/config.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.service.ts b/lib/config.service.ts index 22a89f14..6d575b89 100644 --- a/lib/config.service.ts +++ b/lib/config.service.ts @@ -89,7 +89,7 @@ export class ConfigService< propertyPath: P, defaultValue: NoInferType, options: ConfigGetOptions, - ): R; + ): Exclude; /** * Get a configuration value (either custom configuration or process environment variable) * based on property path (you can use dot notation to traverse nested object, e.g. "database.host").