DataHandler
A handler for loading and saving data to the plugin’s data file.
Import:
import type { DataHandler } from '@mnaoumov/obsidian-lib/data-handler';Signature:
export interface DataHandlerProperties
| Property | Type | Description |
|---|---|---|
| loadData | () => Promise<unknown> | A function to load data from the plugin's data file. |
| saveData | (data: unknown) => Promise<void> | A function to save data to the plugin's data file. |
Links to this page: