(key: string)
| 37 | |
| 38 | // Define a type-safe helper function to get config values |
| 39 | const getConfigValue = (key: string): string | undefined => { |
| 40 | for (const config of configData) { |
| 41 | if (config.key === key) { |
| 42 | return config.value |
| 43 | } |
| 44 | } |
| 45 | return undefined |
| 46 | } |
| 47 | |
| 48 | // Define a helper function to update config values |
| 49 | const setConfigValue = (key: string, value: string): void => { |