@tauri-apps/plugin-store - v2.4.1
    Preparing search index...

    Type Alias StoreOptions

    Options to create a store

    type StoreOptions = {
        defaults: { [key: string]: unknown };
        autoSave?: boolean | number;
        serializeFnName?: string;
        deserializeFnName?: string;
        createNew?: boolean;
        overrideDefaults?: boolean;
    }
    Index

    Properties

    defaults: { [key: string]: unknown }

    Default value of the store

    autoSave?: boolean | number

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

    serializeFnName?: string

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

    deserializeFnName?: string

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

    createNew?: boolean

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

    overrideDefaults?: boolean

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