UNPKG

sub-redux

Version:

[![npm version](https://img.shields.io/npm/v/sub-redux.svg)](https://www.npmjs.com/package/sub-redux) [![npm](https://img.shields.io/npm/dm/sub-redux.svg)](https://www.npmjs.com/package/sub-redux)

14 lines (13 loc) 489 B
import { Action as ReduxAction } from 'redux'; import { SubReducer, SubState } from './types'; export declare type State = Readonly<Record<string, { state: SubState; reducer: SubReducer; }>>; export declare function reducer(state: Readonly<Record<string, { state: any; reducer: import("redux").Reducer<any, ReduxAction<any>>; }>> | undefined, action: ReduxAction): Readonly<Record<string, { state: any; reducer: import("redux").Reducer<any, ReduxAction<any>>; }>>;