zustand-storage
Version:
A universal solution combining @aivron/sync-storage and zust-api for React (web & desktop). It merges local persistence with a Zustand-inspired API to provide core storage operations, bulk actions, JSON support, TTL, and integrated React hooks.
12 lines (11 loc) • 627 B
TypeScript
import { SyncedStore, SyncedStoreConfig } from "./types";
/**
* Creates a synced store that combines zust‑api state management with persistence via @aivron/sync-storage,
* and optional database integration.
*
* @template State - The type of the state. Must extend object.
* @template Actions - The type of the actions.
* @param config - The configuration object for the synced store.
* @returns A synced store containing the React hook and utility methods.
*/
export declare function createSyncedStore<State extends object, Actions>(config: SyncedStoreConfig<State, Actions>): SyncedStore<State, Actions>;