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)

9 lines (8 loc) 360 B
import { MiddlewareAPI, Store } from 'redux'; export declare function getSubMiddlewareApi(instance: string, store: MiddlewareAPI): MiddlewareAPI; export declare type SubReduxStore = Store & { isSubReduxStore: true; subReduxInstance: string; parentStore: Store; }; export declare function getSubStore(instance: string, store: Store): SubReduxStore;