AppConfigRestore
What setAppConfig captured before it wrote, and all restoreAppConfig needs to put the key back exactly as it was — including putting it back to absent.
Import:
import type { AppConfigRestore } from 'obsidian-integration-testing';Signature:
export interface AppConfigRestoreProperties
| Property | Type | Description |
|---|---|---|
| configKey | string | The key that was written. |
| isPresent | boolean | Whether the vault's config carried the key at all before the write. false means the vault was running on Obsidian's own default, and restoring is a delete rather than a write. |
| transport? | ObsidianTransport | The transport the capture was made against, so the restore lands in the same instance. |
| value | unknown | The value the key held, or undefined when isPresent is false. |
| vaultPath? | string | The vault the capture was made against, so the restore lands in the same instance. |
Links to this page: