Files
Nitro-V3/src/api/nitro/GetConfigurationValue.ts
T
2026-05-06 08:48:17 +02:00

12 lines
398 B
TypeScript

import { GetConfiguration } from '@nitrots/nitro-renderer';
export function GetConfigurationValue<T = string>(key: string, value: T = null): T
{
return GetConfiguration().getValue(key, value);
}
export function GetOptionalConfigurationValue<T = string>(key: string, value: T = null): T
{
return GetConfiguration().definitions.has(key) ? GetConfiguration().getValue(key, value) : value;
}