obsidian-dev-utils
Version:
This is the collection of useful functions that you can use for your Obsidian plugin development
26 lines (25 loc) • 562 B
text/typescript
/**
* @packageDocumentation
*
* Plugin settings wrapper.
*/
import type { StringKeys } from '../../Type.cjs';
/**
* A wrapper for plugin settings.
*
* @typeParam PluginSettings - The type of the plugin settings.
*/
export interface PluginSettingsWrapper<PluginSettings extends object> {
/**
* Safe settings.
*/
safeSettings: PluginSettings;
/**
* Possibly unsafe settings.
*/
settings: PluginSettings;
/**
* A validation messages.
*/
validationMessages: Record<StringKeys<PluginSettings>, string>;
}