Skip to content

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 AppConfigRestore

Properties

PropertyTypeDescription
configKeystringThe key that was written.
isPresentbooleanWhether 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?ObsidianTransportThe transport the capture was made against, so the restore lands in the same instance.
valueunknownThe value the key held, or undefined when isPresent is false.
vaultPath?stringThe vault the capture was made against, so the restore lands in the same instance.

Links to this page: