1 | import { MouseEventHandler, PureComponent } from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import { Base16Theme } from 'redux-devtools-themes';
|
4 | import { Action } from 'redux';
|
5 | interface Props<S, A extends Action<unknown>> {
|
6 | theme: Base16Theme;
|
7 | select: (state: any) => unknown;
|
8 | action: A;
|
9 | actionId: number;
|
10 | state: S;
|
11 | previousState: S | undefined;
|
12 | collapsed: boolean;
|
13 | inFuture: boolean;
|
14 | selected: boolean;
|
15 | error: string | undefined;
|
16 | expandActionRoot: boolean;
|
17 | expandStateRoot: boolean;
|
18 | markStateDiff: boolean;
|
19 | onActionClick: (id: number) => void;
|
20 | onActionShiftClick: (id: number) => void;
|
21 | }
|
22 | export default class LogMonitorEntry<S, A extends Action<unknown>> extends PureComponent<Props<S, A>> {
|
23 | static propTypes: {
|
24 | state: PropTypes.Validator<object>;
|
25 | action: PropTypes.Validator<object>;
|
26 | actionId: PropTypes.Validator<number>;
|
27 | select: PropTypes.Validator<(...args: any[]) => any>;
|
28 | inFuture: PropTypes.Requireable<boolean>;
|
29 | error: PropTypes.Requireable<string>;
|
30 | onActionClick: PropTypes.Validator<(...args: any[]) => any>;
|
31 | onActionShiftClick: PropTypes.Validator<(...args: any[]) => any>;
|
32 | collapsed: PropTypes.Requireable<boolean>;
|
33 | selected: PropTypes.Requireable<boolean>;
|
34 | expandActionRoot: PropTypes.Requireable<boolean>;
|
35 | expandStateRoot: PropTypes.Requireable<boolean>;
|
36 | previousState: PropTypes.Requireable<object>;
|
37 | };
|
38 | printState(state: S, error: string | undefined): JSX.Element;
|
39 | handleActionClick: MouseEventHandler<HTMLDivElement>;
|
40 | shouldExpandNode: (keyPath: (string | number)[], data: any, level: number) => boolean;
|
41 | render(): JSX.Element;
|
42 | }
|
43 | export {};
|