UNPKG

1.65 kBTypeScriptView Raw
1import { PureComponent } from 'react';
2import PropTypes from 'prop-types';
3import { Action } from 'redux';
4import { PerformAction } from 'redux-devtools';
5import { Base16Theme } from 'redux-devtools-themes';
6interface Props<S, A extends Action<unknown>> {
7 actionsById: {
8 [actionId: number]: PerformAction<A>;
9 };
10 computedStates: {
11 state: S;
12 error?: string;
13 }[];
14 stagedActionIds: number[];
15 skippedActionIds: number[];
16 currentStateIndex: number;
17 consecutiveToggleStartId: number | null | undefined;
18 select: (state: S) => unknown;
19 onActionClick: (id: number) => void;
20 theme: Base16Theme;
21 expandActionRoot: boolean;
22 expandStateRoot: boolean;
23 markStateDiff: boolean;
24 onActionShiftClick: (id: number) => void;
25}
26export default class LogMonitorEntryList<S, A extends Action<unknown>> extends PureComponent<Props<S, A>> {
27 static propTypes: {
28 actionsById: PropTypes.Requireable<object>;
29 computedStates: PropTypes.Requireable<any[]>;
30 stagedActionIds: PropTypes.Requireable<any[]>;
31 skippedActionIds: PropTypes.Requireable<any[]>;
32 currentStateIndex: PropTypes.Requireable<number>;
33 consecutiveToggleStartId: PropTypes.Requireable<number>;
34 select: PropTypes.Validator<(...args: any[]) => any>;
35 onActionClick: PropTypes.Validator<(...args: any[]) => any>;
36 theme: PropTypes.Requireable<string | object>;
37 expandActionRoot: PropTypes.Requireable<boolean>;
38 expandStateRoot: PropTypes.Requireable<boolean>;
39 };
40 render(): JSX.Element;
41}
42export {};