From 249f7bd0f338071d99801ccc9e9db416da1a361c Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Fri, 20 May 2022 11:27:38 -0700 Subject: [PATCH] docs: improve note about default value being undefined --- lib/config.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/config.service.ts b/lib/config.service.ts index f8e1001f..6db94803 100644 --- a/lib/config.service.ts +++ b/lib/config.service.ts @@ -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 */ @@ -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 @@ -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 */