( config: Record<string, ComputedConfigValue>, key: string )
| 89 | type ComputedConfigValue = string | string[] | ParsedValueToken[]; |
| 90 | |
| 91 | function getConfigValue( |
| 92 | config: Record<string, ComputedConfigValue>, |
| 93 | key: string |
| 94 | ): ComputedConfigValue | undefined { |
| 95 | const match = Object.entries(config).find( |
| 96 | ([configKey]) => configKey.toLowerCase() === key.toLowerCase() |
| 97 | ); |
| 98 | return match?.[1]; |
| 99 | } |
| 100 | |
| 101 | function toStringValue(value: ComputedConfigValue | undefined): string | undefined { |
| 102 | if (typeof value === "string") { |
no outgoing calls
no test coverage detected