Function: setConfig() β
setConfig(
conf
):MermaidConfig
Defined in: packages/mermaid/src/config.ts:113
setConfig β
Function | Description | Type | Values |
---|---|---|---|
setSiteConfig | Sets the siteConfig to desired values | Put Request | Any Values, except ones in secure array |
Notes: Sets the currentConfig. The parameter conf is sanitized based on the siteConfig.secure keys. Any values found in conf with key found in siteConfig.secure will be replaced with the corresponding siteConfig value.
Parameters β
conf β
The potential currentConfig
Returns β
The currentConfig merged with the sanitized conf