Retrieve the validated data for a registered config section.
Returns undefined if:
undefined
Section name (case-insensitive)
The validated section data, or undefined
interface MyAppConfig { url: string; timeout_ms?: number;}const config = getAppConfig<MyAppConfig>('myapp');if (config) { console.log(config.url);} Copy
interface MyAppConfig { url: string; timeout_ms?: number;}const config = getAppConfig<MyAppConfig>('myapp');if (config) { console.log(config.url);}
Retrieve the validated data for a registered config section.
Returns
undefinedif: