Skip to content

Commit

Permalink
fix: exclude undefined if default value specified #1460
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Sep 13, 2023
1 parent a76ff24 commit 83974af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.service.ts
Expand Up @@ -89,7 +89,7 @@ export class ConfigService<
propertyPath: P,
defaultValue: NoInferType<R>,
options: ConfigGetOptions,
): R;
): Exclude<R, undefined>;
/**
* 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").
Expand Down

0 comments on commit 83974af

Please sign in to comment.