mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 05:19:58 +02:00
43 lines
1.5 KiB
Markdown
43 lines
1.5 KiB
Markdown
> **Warning**
|
|
>
|
|
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
|
|
>
|
|
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/config/functions/reset.md](../../../../../packages/mermaid/src/docs/config/setup/config/functions/reset.md).
|
|
|
|
[**mermaid**](../../README.md)
|
|
|
|
---
|
|
|
|
# Function: reset()
|
|
|
|
> **reset**(`config`): `void`
|
|
|
|
Defined in: [packages/mermaid/src/config.ts:221](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.ts#L221)
|
|
|
|
## reset
|
|
|
|
| Function | Description | Type | Required | Values |
|
|
| -------- | ---------------------------- | ----------- | -------- | ------ |
|
|
| reset | Resets currentConfig to conf | Put Request | Required | None |
|
|
|
|
## conf
|
|
|
|
| Parameter | Description | Type | Required | Values |
|
|
| --------- | -------------------------------------------------------------- | ---------- | -------- | -------------------------------------------- |
|
|
| conf | base set of values, which currentConfig could be **reset** to. | Dictionary | Required | Any Values, with respect to the secure Array |
|
|
|
|
**Notes**: (default: current siteConfig ) (optional, default `getSiteConfig()`)
|
|
|
|
## Parameters
|
|
|
|
### config
|
|
|
|
[`MermaidConfig`](../../mermaid/interfaces/MermaidConfig.md) = `siteConfig`
|
|
|
|
base set of values, which currentConfig could be **reset** to.
|
|
Defaults to the current siteConfig (e.g returned by [getSiteConfig](getSiteConfig.md)).
|
|
|
|
## Returns
|
|
|
|
`void`
|