mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-12-10 03:34:17 +03:00
Format
This commit is contained in:
parent
51afe32a71
commit
d734c9b43f
|
|
@ -13,8 +13,7 @@ const wrapperStyle = {
|
|||
};
|
||||
|
||||
export interface Props<S, A extends Action<string>>
|
||||
extends LiftedState<S, A, ChartMonitorState>,
|
||||
Options {
|
||||
extends LiftedState<S, A, ChartMonitorState>, Options {
|
||||
dispatch: Dispatch<LiftedAction<S, A, ChartMonitorState>>;
|
||||
preserveScrollTop: boolean;
|
||||
select: (state: S) => unknown;
|
||||
|
|
|
|||
|
|
@ -41,8 +41,7 @@ function invertColors(theme: Base16Theme) {
|
|||
}
|
||||
|
||||
export interface ChartMonitorProps<S, A extends Action<string>>
|
||||
extends LiftedState<S, A, ChartMonitorState>,
|
||||
Options {
|
||||
extends LiftedState<S, A, ChartMonitorState>, Options {
|
||||
dispatch: Dispatch<LiftedAction<S, A, ChartMonitorState>>;
|
||||
preserveScrollTop: boolean;
|
||||
select: (state: S) => unknown;
|
||||
|
|
|
|||
|
|
@ -44,8 +44,10 @@ interface DefaultProps {
|
|||
fluid: boolean;
|
||||
}
|
||||
|
||||
export interface DockMonitorProps<S, A extends Action<string>>
|
||||
extends LiftedState<S, A, DockMonitorState> {
|
||||
export interface DockMonitorProps<
|
||||
S,
|
||||
A extends Action<string>,
|
||||
> extends LiftedState<S, A, DockMonitorState> {
|
||||
defaultPosition: 'left' | 'top' | 'right' | 'bottom';
|
||||
defaultIsVisible: boolean;
|
||||
defaultSize: number;
|
||||
|
|
|
|||
|
|
@ -48,8 +48,10 @@ const styles: {
|
|||
|
||||
const ROOT = '/'; // process.env.NODE_ENV === 'production' ? '/' : '/';
|
||||
|
||||
interface Props
|
||||
extends Omit<DemoAppState, 'addFunction' | 'addSymbol' | 'shuffleArray'> {
|
||||
interface Props extends Omit<
|
||||
DemoAppState,
|
||||
'addFunction' | 'addSymbol' | 'shuffleArray'
|
||||
> {
|
||||
toggleTimeoutUpdate: (timeoutUpdateEnabled: boolean) => void;
|
||||
timeoutUpdate: () => void;
|
||||
increment: () => void;
|
||||
|
|
|
|||
|
|
@ -59,8 +59,10 @@ export function compare<S>(
|
|||
).forEach(generate);
|
||||
}
|
||||
|
||||
interface Props<S, A extends Action<string>>
|
||||
extends Omit<TabComponentProps<S, A>, 'monitorState' | 'updateMonitorState'> {
|
||||
interface Props<S, A extends Action<string>> extends Omit<
|
||||
TabComponentProps<S, A>,
|
||||
'monitorState' | 'updateMonitorState'
|
||||
> {
|
||||
name?: string;
|
||||
isVanilla?: boolean;
|
||||
wrap?: string | ((locals: WrapLocals) => string);
|
||||
|
|
|
|||
|
|
@ -119,8 +119,10 @@ function buildUrl(options: Options) {
|
|||
);
|
||||
}
|
||||
|
||||
interface Props
|
||||
extends Omit<DemoAppState, 'addFunction' | 'addSymbol' | 'shuffleArray'> {
|
||||
interface Props extends Omit<
|
||||
DemoAppState,
|
||||
'addFunction' | 'addSymbol' | 'shuffleArray'
|
||||
> {
|
||||
toggleTimeoutUpdate: (timeoutUpdateEnabled: boolean) => void;
|
||||
timeoutUpdate: () => void;
|
||||
increment: () => void;
|
||||
|
|
|
|||
|
|
@ -144,8 +144,10 @@ interface DefaultProps {
|
|||
invertTheme: boolean;
|
||||
}
|
||||
|
||||
export interface DevtoolsInspectorProps<S, A extends Action<string>>
|
||||
extends LiftedState<S, A, DevtoolsInspectorState> {
|
||||
export interface DevtoolsInspectorProps<
|
||||
S,
|
||||
A extends Action<string>,
|
||||
> extends LiftedState<S, A, DevtoolsInspectorState> {
|
||||
dispatch: Dispatch<
|
||||
DevtoolsInspectorAction | LiftedAction<S, A, DevtoolsInspectorState>
|
||||
>;
|
||||
|
|
|
|||
|
|
@ -64,8 +64,10 @@ interface DefaultProps<S> {
|
|||
markStateDiff: boolean;
|
||||
}
|
||||
|
||||
export interface LogMonitorProps<S, A extends Action<string>>
|
||||
extends LiftedState<S, A, LogMonitorState> {
|
||||
export interface LogMonitorProps<
|
||||
S,
|
||||
A extends Action<string>,
|
||||
> extends LiftedState<S, A, LogMonitorState> {
|
||||
dispatch: Dispatch<LogMonitorAction | LiftedAction<S, A, LogMonitorState>>;
|
||||
|
||||
preserveScrollTop: boolean;
|
||||
|
|
|
|||
|
|
@ -6,13 +6,12 @@ import { getJsonTreeTheme, StyleUtilsContext } from '../styles/themes';
|
|||
import { getItemString, labelRenderer } from '../styles/tree';
|
||||
import { identity } from '../utils/object';
|
||||
|
||||
export interface TreeViewProps
|
||||
extends Partial<
|
||||
Pick<
|
||||
ComponentProps<typeof JSONTree>,
|
||||
'keyPath' | 'shouldExpandNodeInitially' | 'hideRoot'
|
||||
>
|
||||
> {
|
||||
export interface TreeViewProps extends Partial<
|
||||
Pick<
|
||||
ComponentProps<typeof JSONTree>,
|
||||
'keyPath' | 'shouldExpandNodeInitially' | 'hideRoot'
|
||||
>
|
||||
> {
|
||||
data: unknown;
|
||||
isWideLayout: boolean;
|
||||
before?: ReactNode;
|
||||
|
|
|
|||
|
|
@ -23,8 +23,10 @@ type ForwardedMonitorProps<S, A extends Action<string>> = Pick<
|
|||
'monitorState' | 'currentStateIndex' | 'computedStates' | 'actionsById'
|
||||
>;
|
||||
|
||||
export interface RtkQueryInspectorProps<S, A extends Action<string>>
|
||||
extends ForwardedMonitorProps<S, A> {
|
||||
export interface RtkQueryInspectorProps<
|
||||
S,
|
||||
A extends Action<string>,
|
||||
> extends ForwardedMonitorProps<S, A> {
|
||||
dispatch: Dispatch<LiftedAction<S, A, RtkQueryMonitorState>>;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,10 @@ export interface RtkQueryMonitorState {
|
|||
readonly selectedPreviewTab: QueryPreviewTabs;
|
||||
}
|
||||
|
||||
export interface RtkQueryMonitorProps<S, A extends Action<string>>
|
||||
extends LiftedState<S, A, RtkQueryMonitorState> {
|
||||
export interface RtkQueryMonitorProps<
|
||||
S,
|
||||
A extends Action<string>,
|
||||
> extends LiftedState<S, A, RtkQueryMonitorState> {
|
||||
dispatch: Dispatch<Action | LiftedAction<S, A, RtkQueryMonitorState>>;
|
||||
theme: keyof typeof base16Themes | Base16Theme;
|
||||
invertTheme: boolean;
|
||||
|
|
@ -187,8 +189,11 @@ export interface ApiStats {
|
|||
}>;
|
||||
}
|
||||
|
||||
export interface TabOption<S, P, V extends string = 'default'>
|
||||
extends SelectOption<S, V> {
|
||||
export interface TabOption<
|
||||
S,
|
||||
P,
|
||||
V extends string = 'default',
|
||||
> extends SelectOption<S, V> {
|
||||
component: ComponentType<P>;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,8 +47,11 @@ export type Monitor<
|
|||
}
|
||||
>;
|
||||
|
||||
export interface DevToolsInstance<S, A extends Action<string>, MonitorState>
|
||||
extends Component<Props<S, A, MonitorState>> {
|
||||
export interface DevToolsInstance<
|
||||
S,
|
||||
A extends Action<string>,
|
||||
MonitorState,
|
||||
> extends Component<Props<S, A, MonitorState>> {
|
||||
liftedStore?: LiftedStore<S, A, MonitorState>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user