Skip to content

Commit

Permalink
fix: comply with lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Jun 2, 2022
1 parent 249f7bd commit c954b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/config.service.ts
Expand Up @@ -134,7 +134,7 @@ export class ConfigService<
* @param propertyPath
* @param options
*/
getOrThrow<T = K, P extends Path<T> = any, R = PathValue<T, P>>(
getOrThrow<T = K, P extends Path<T> = any>(
propertyPath: P,
options: ConfigGetOptions,
): Exclude<T, undefined>;
Expand Down Expand Up @@ -183,7 +183,7 @@ export class ConfigService<
| undefined;

if (isUndefined(value)) {
throw new TypeError(`Configuration key "${propertyPath}" does not exist`);
throw new TypeError(`Configuration key "${propertyPath.toString()}" does not exist`);
}

return value as Exclude<T, undefined>;
Expand Down

0 comments on commit c954b99

Please sign in to comment.