UNPKG

redux-code

Version:

Redux helpers for actions and reducers

21 lines (20 loc) 526 B
import { Reducer } from 'redux' /** * * A helper to create reducer (uses immer) * @param initial The initial state */ export declare const createReducer: <S>( initial: S, ...mixins: object[] ) => Reducer<S, import('redux').AnyAction> /** * * A helper to create reducer (without immer) * @param initial The initial state */ export declare const createBaseReducer: <S>( initial: S, ...mixins: object[] ) => Reducer<S, import('redux').AnyAction> export declare const buildStructuredReducer: (reducer: any) => any