Constructor.
For any properties passed on initialMap
, Configuration#value will
be called so those properties are defined on this instance.
Optional
initialMap: object | Map<string, any>the optional initial properties to store
Private
Readonly
#mapThe configuration data.
Get direct access to the underlying property map.
Private
#createSet or toggle the enabled status of a given key.
If the enabled
parameter is not passed, then the enabled
status will be toggled to its opposite value.
the key to set
Optional
enabled: booleanthe optional enabled value to set
this object to allow method chaining
Get a configuration value.
the key to get
the associated value for the given key
Set a configuration value.
the key to get or set the value for
the new value to set for the given key
.
If null
then the value will be removed.
this object.
Get all properties.
all properties of this object copied into a simple object
Set multiple properties.
a map of values to set
this object
Generated using TypeDoc
A configuration utility object.
Properties can be get/set by using the Util.Configuration#value function. Properties added this way become enumerable properties of the
Configuration
instance as well.