Members
layers :Array.<AbstractLayer>
Type:
- Array.<AbstractLayer>
Methods
(async) addLayer(layer) → {Promise.<void>}
Adds layer to storage for further data search
Parameters:
Name | Type | Description |
---|---|---|
layer |
AbstractLayer |
Returns:
- Type
- Promise.<void>
compile()
Compile config and prepare it for .get()
get(path, separatoropt) → {*}
Search data by path in merged data, if data is not merged yet, will merge and returns
then returns value or error
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
string | Path to target value |
|
separator |
string |
<optional> |
Path separator, default is set as options.getSeparator, which default is dot |
Returns:
- Type
- *
recompile()
Build inner config cache again, can be used for manual runtime layers re-read