UNPKG

tauri-settings

Version:

A user settings manager for Tauri inspired by electron-settings.

16 lines (15 loc) 513 B
import { STATUS } from './ensure-settings-file'; import { ConfigOptions } from '../config/config'; /** * @internal */ export declare function saveSettings<SettingsSchema extends any>(newSettings: SettingsSchema, path: string, options: ConfigOptions): Promise<void>; /** * Get all the settings. * @returns The entire settings object. */ export declare function getSettings<SettingsSchema extends any>(options?: ConfigOptions): Promise<{ settings: SettingsSchema; path: string; status: STATUS; }>;