Skip to content

SettingsRecoveryStore

Where recovery copies of a plugin’s data.json are kept.

Import:

import type { SettingsRecoveryStore } from '@mnaoumov/obsidian-lib/settings-recovery';

Signature:

export interface SettingsRecoveryStore

Properties

PropertyTypeDescription
keep(params: SettingsRecoveryStoreKeepParams) => Promise<SettingsRecoveryCopy>Keeps a copy. A copy whose raw text is already kept is not duplicated; the existing one is returned.
list() => Promise<SettingsRecoveryCopy[]>Lists the kept copies.
remove(id: string) => Promise<void>Removes a kept copy. Removing an id that is not kept does nothing.

Links to this page: