sub-redux
Version:
[](https://www.npmjs.com/package/sub-redux) [](https://www.npmjs.com/package/sub-redux)
9 lines (8 loc) • 360 B
TypeScript
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;