UNPKG

981 BTypeScriptView Raw
1import { StoreEnhancer } from "redux";
2import { Reactotron } from "reactotron-core-client";
3import { PluginConfig } from "./pluginConfig";
4declare function reactotronRedux(pluginConfig?: PluginConfig): (reactotron: Reactotron) => {
5 onCommand: ({ type, payload }: {
6 type: string;
7 payload?: any;
8 }) => void;
9 features: {
10 createEnhancer: (skipSettingStore?: boolean) => (createStore: any) => (reducer: any, ...args: any[]) => any;
11 setReduxStore: (store: any) => void;
12 reportReduxAction: (action: {
13 type: any;
14 }, ms: number, important?: boolean) => void;
15 };
16};
17export { reactotronRedux };
18declare module "reactotron-core-client" {
19 interface Reactotron {
20 reduxStore?: any;
21 /**
22 * Enhancer creator
23 */
24 createEnhancer?: (skipSettingStore?: boolean) => StoreEnhancer;
25 /**
26 * Store setter
27 */
28 setReduxStore?: (store: any) => void;
29 }
30}