UNPKG

saltfish

Version:

An interactive video-guided tour system for web applications

20 lines 700 B
import { useSaltfishStore } from '../core/store'; /** * Get the Saltfish store state with consistent error handling * * This utility provides a consistent way to access the Zustand store * across all managers and components. It replaces direct calls to * getSaltfishStore() throughout the codebase. * * @returns The current store state * @throws Error if store access fails (which should never happen in practice) * * @example * ```typescript * const store = getSaltfishStore(); * const currentState = store.currentState; * // Use store data... * ``` */ export declare function getSaltfishStore(): ReturnType<typeof useSaltfishStore.getState>; //# sourceMappingURL=storeUtils.d.ts.map