UNPKG

@spartacus/core

Version:

Spartacus - the core framework

12 lines (11 loc) 581 B
import { EntityScopedLoaderAction } from '../../../product/store/actions/product.action'; import { ScopedLoaderState } from './scoped-loader.state'; import { Action } from '@ngrx/store'; export declare const initialScopedLoaderState: ScopedLoaderState<any>; /** * Higher order reducer designed to add scope support for loader reducer * * @param entityType * @param reducer */ export declare function scopedLoaderReducer<T>(entityType: string, reducer?: (state: T, action: Action) => T): (state: ScopedLoaderState<T>, action: EntityScopedLoaderAction) => ScopedLoaderState<T>;