UNPKG

746 BTypeScriptView Raw
1import type { ReactotronCore } from "reactotron-core-client";
2import { PluginConfig } from "./pluginConfig";
3declare function reactotronRedux(pluginConfig?: PluginConfig): <Client extends ReactotronCore = ReactotronCore>(reactotron: Client) => {
4 onCommand: ({ type, payload }: {
5 type: string;
6 payload?: any;
7 }) => void;
8 features: {
9 createEnhancer: (skipSettingStore?: boolean) => (createStore: any) => (reducer: any, ...args: any[]) => any;
10 setReduxStore: (store: any) => void;
11 reportReduxAction: (action: {
12 type: any;
13 }, ms: number, important?: boolean) => void;
14 };
15};
16export type ReactotronReduxPlugin = ReturnType<typeof reactotronRedux>;
17export { reactotronRedux };