Type Alias TauriStoreContract

TauriStoreContract: {
    getPath: () => Promise<string>;
    save: () => Promise<void>;
    saveAll: () => Promise<void>;
    saveAllNow: () => Promise<void>;
    saveNow: () => Promise<void>;
    start: () => Promise<void>;
    stop: () => Promise<void>;
}

A contract that a store must adhere to in order to be considered a valid implementation.

Type declaration

  • ReadonlygetPath: () => Promise<string>

    Path where the store is saved.

  • Readonlysave: () => Promise<void>

    Saves the store to the disk.

  • ReadonlysaveAll: () => Promise<void>

    Saves all stores to the disk.

  • ReadonlysaveAllNow: () => Promise<void>

    Saves all the stores to the disk immediately, ignoring the save strategy.

  • ReadonlysaveNow: () => Promise<void>

    Saves the store to the disk immediately, ignoring the save strategy.

  • Readonlystart: () => Promise<void>

    Starts watching for changes.

  • Readonlystop: () => Promise<void>

    Stops watching for changes.