Skip to content

LocalSettingsRecoveryStoreConstructorParams

Constructor parameters for LocalSettingsRecoveryStore.

Import:

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

Signature:

export interface LocalSettingsRecoveryStoreConstructorParams

Properties

PropertyTypeDescription
appAppThe Obsidian app; its device-local appId scopes the store to this vault.
factory?IDBFactoryIndexedDB implementation, injectable for tests.
maxCopies?numberHow many copies to keep. Defaults to DEFAULT_MAX_SETTINGS_RECOVERY_COPIES.
now?() => numberThe clock, injectable for tests. Defaults to Date.now.
pluginIdstringThe manifest.id of the plugin.