Function: getConfig()
function getConfig(path: string, defaultValue?: unknown): unknown;
Defined in: utils/config/constants.ts:282
Get a configuration value by dot-notation path.
Parametersβ
pathβ
string
Dot-notation path to a configuration value.
defaultValue?β
unknown
Value returned when the path does not exist.
Returnsβ
unknown
Configuration value, or the provided default value.
Exampleβ
GetConfig("UI_CONSTANTS.DEFAULT_THEME"); // "dark"
getConfig("CONVERSION_FACTORS.METERS_PER_MILE"); // 1609.344