콘텐츠로 이동

StoreOptions

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/store · Kind Type

import { StoreOptions } from '@netwiv/api/plugins/store';

Options to create a store

autoSave?: number | boolean | undefined

Auto save on modification with debounce duration in milliseconds, it’s 100ms by default, pass in false to disable it

createNew?: boolean | undefined

Force create a new store with default values even if it already exists.

defaults?: { [key: string]: unknown; } | undefined

Default value of the store

deserializeFnName?: string | undefined

Name of a deserialize function registered in the rust side plugin builder

overrideDefaults?: boolean | undefined

When creating the store, override the store with the on-disk state if it exists, ignoring defaults

serializeFnName?: string | undefined

Name of a serialize function registered in the rust side plugin builder


Descriptions come from the pinned @tauri-apps/plugin-store@2.4.5 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.