@zedux/core
Version:
A high-level, declarative, composable form of Redux
9 lines (7 loc) • 336 B
TypeScript
import { ReducerBuilder } from '../types.js';
/**
Creates a new ReducerBuilder.
A ReducerBuilder is just a reducer with a special `.reducer()` method for
easily mapping action types to sub-reducers that handle them.
*/
export declare const createReducer: <State = any>(initialState?: State | undefined) => ReducerBuilder<State>;