Skip to content

PluginSettingsState<PluginSettings>

A snapshot of plugin settings state, including raw input values, effective (validated) values, and per-property validation messages.

Import:

import type { PluginSettingsState } from 'obsidian-dev-utils/obsidian/components/plugin-settings-component';

Signature:

export interface PluginSettingsState<PluginSettings extends object>

Properties

PropertyTypeDescription
effectiveValuesPluginSettingsThe effective settings values used by the plugin. Invalid properties are replaced with defaults.
inputValuesPluginSettingsThe raw input values as entered by the user. May contain invalid values.
validationMessagesRecord<StringKeys<PluginSettings>, string>Per-property validation messages. Empty string means valid.

Links to this page: