Skip to content

Commit 83974af

Browse files
fix: exclude undefined if default value specified #1460
1 parent a76ff24 commit 83974af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class ConfigService<
8989
propertyPath: P,
9090
defaultValue: NoInferType<R>,
9191
options: ConfigGetOptions,
92-
): R;
92+
): Exclude<R, undefined>;
9393
/**
9494
* Get a configuration value (either custom configuration or process environment variable)
9595
* based on property path (you can use dot notation to traverse nested object, e.g. "database.host").

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy