Configuration interface
Configuration is an interface that is used to obtain configurable values
Methods
get<T>(string[]) | Look up a value by path. |
set(string[], unknown) | Set a value by path. |
Method Details
get<T>(string[])
Look up a value by path.
function get<T>(path?: string[]): T | undefined
Parameters
- path
-
string[]
path to get
Returns
T | undefined
the value, or undefined
set(string[], unknown)
Set a value by path.
function set(path: string[], value: unknown)
Parameters
- path
-
string[]
path to get
- value
-
unknown
path to get