UNPKG

redux-devtools-dock-monitor

Version:
12 lines (11 loc) 522 B
import { Action } from 'redux'; import { DockMonitorAction } from './actions'; import { DockMonitorProps } from './DockMonitor'; export interface DockMonitorState { position: 'left' | 'top' | 'right' | 'bottom'; size: number; isVisible: boolean; childMonitorStates: unknown[]; childMonitorIndex: number; } export default function reducer<S, A extends Action<unknown>>(props: DockMonitorProps<S, A>, state: Partial<DockMonitorState> | undefined, action: DockMonitorAction): DockMonitorState;