Skip to content

Commit

Permalink
docs: improve note about default value being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Jun 2, 2022
1 parent 621a84a commit 249f7bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/config.service.ts
Expand Up @@ -142,7 +142,7 @@ export class ConfigService<
* 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").
* It returns a default value if the key does not exist.
* If no default value was provided an exception will be thrown.
* If the default value is undefined an exception will be thrown.
* @param propertyPath
* @param defaultValue
*/
Expand All @@ -154,7 +154,7 @@ export class ConfigService<
* 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").
* It returns a default value if the key does not exist.
* If no default value was provided an exception will be thrown.
* If the default value is undefined an exception will be thrown.
* @param propertyPath
* @param defaultValue
* @param options
Expand All @@ -168,7 +168,7 @@ export class ConfigService<
* 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").
* It returns a default value if the key does not exist.
* If no default value was provided an exception will be thrown.
* If the default value is undefined an exception will be thrown.
* @param propertyPath
* @param defaultValueOrOptions
*/
Expand Down

0 comments on commit 249f7bd

Please sign in to comment.