import { loadConfig, type LoadedConfig } from './loadConfig.js'; export type ConfigParameterKey = keyof LoadedConfig; export function resolveConfigValue( projectDir: string, key: K, ): LoadedConfig[K] { return loadConfig(projectDir)[key]; } export function resolveConfigValues( projectDir: string, keys: readonly K[], ): Pick { const config = loadConfig(projectDir); const result = {} as Pick; for (const key of keys) { result[key] = config[key]; } return result; }