UNPKG

obsidian-dev-utils

Version:

This is the collection of useful functions that you can use for your Obsidian plugin development

26 lines (25 loc) 567 B
/** * @packageDocumentation * * Plugin settings wrapper. */ import type { StringKeys } from '../../Type.cjs'; /** * Represents a wrapper for plugin settings. * * @typeParam PluginSettings - The type of the plugin settings. */ export interface PluginSettingsWrapper<PluginSettings extends object> { /** * The safe settings. */ safeSettings: PluginSettings; /** * The settings. */ settings: PluginSettings; /** * The validation messages. */ validationMessages: Record<StringKeys<PluginSettings>, string>; }