UNPKG

tauri-settings

Version:

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

10 lines (9 loc) 486 B
import type { Path, PathValue } from '../types/dot-notation'; /** * @internal */ export declare function getDotNotation<SettingsSchema, K extends Path<SettingsSchema> = Path<SettingsSchema>>(settings: SettingsSchema, path: K): PathValue<SettingsSchema, K> | null; /** * @internal */ export declare function setDotNotation<SettingsSchema, K extends Path<SettingsSchema> = Path<SettingsSchema>>(settings: SettingsSchema, path: K, value: PathValue<SettingsSchema, K>): SettingsSchema;