UNPKG

@techsio/storefront-data

Version:

Medusa-first storefront data layer built on TanStack Query.

19 lines • 679 B
type ObservableStorageValueStore = StorageValueStore & { subscribe: (listener: () => void) => () => void; getSnapshot: () => string | null; }; export type StorageValueStore = { get: () => string | null; set: (value: string) => void; clear: () => void; subscribe?: (listener: () => void) => () => void; getSnapshot?: () => string | null; getServerSnapshot?: () => string | null; }; export declare function createLocalStorageValueStore({ key, storage, serverSnapshot, }: { key: string; storage?: Storage | null; serverSnapshot?: string | null; }): ObservableStorageValueStore; export {}; //# sourceMappingURL=storage-value-store.d.ts.map