mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
12 lines
398 B
TypeScript
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;
|
|
}
|