Private
Checks if a given configuration key exists.
Key to check.
true
if the key exists.
Gets the value of one or more keys.
If called with no arguments, all values are returned.
If selection
was a string, returns the value. If selection
was an array, returns
an object of key/values. If no selection
is passed, a new object with all key/values is returned.
Any type of the return value is a deep copy of the original stored in the instance.
Sets the value of one or more keys.
true
on success, false
on failure.
NOTE: The pre-set wg
-configuration variables are read-only, and attempts to set a new value
for them always return false
.
The structure of Mwbot.config, designed to provide user-friendly Intellisense suggestions.
This interface is essentially a TypeScript representation of mw.config from MediaWiki core, with some adjustments for improved usability.
See Mwbot.config for implementation details.