(key: string, defaultValue?: any)
| 28 | * @param defaultValue The fallback value if the key is not set in the config. |
| 29 | */ |
| 30 | export function getValue<T = any>(key: string, defaultValue?: any): T { |
| 31 | const lib = getCLILib(); |
| 32 | |
| 33 | if (!lib) { |
| 34 | return defaultValue; |
| 35 | } |
| 36 | |
| 37 | return ( |
| 38 | lib.projectConfigService as { |
| 39 | getValue(key: string, defaultValue?: any): T; |
| 40 | } |
| 41 | ).getValue(key, defaultValue); |
| 42 | } |
no test coverage detected