@larscom/ngrx-store-storagesync
Version:
Highly configurable state sync library between localStorage/sessionStorage and @ngrx/store (Angular)
14 lines (13 loc) • 540 B
TypeScript
import { Action } from '@ngrx/store';
import { IStorageSyncOptions } from './storage-sync-options';
/**
* The StorageSync Meta Reducer for @ngrx/store.
*
* @param options The configuration for the meta reducer
*
* Check out github for more information.
* @see https://github.com/larscom/ngrx-store-storagesync
*
* @returns the meta reducer function
*/
export declare const storageSync: <T>(options: IStorageSyncOptions<T>) => (reducer: (state: T | undefined, action: Action) => T) => ((state: T | undefined, action: Action) => T);