Configuration interface
Configuration is an interface that is used to obtain configurable values
Methods
| get<T>(string[]) | Gets a configured value at the specified path. |
| set(string[], unknown) | Sets a configured value at the specified path. |
Method Details
get<T>(string[])
Gets a configured value at the specified path.
function get<T>(path?: string[]): T | undefined
Parameters
- path
-
string[]
The path segments identifying the value.
Returns
T | undefined
The configured value, or undefined when no value exists.
set(string[], unknown)
Sets a configured value at the specified path.
function set(path: string[], value: unknown)
Parameters
- path
-
string[]
The path segments identifying the value.
- value
-
unknown
The value to set.