refactor(types): rename ActionTypes to ReactFlowActionTypes

This commit is contained in:
moklick
2021-01-28 12:45:32 +01:00
parent 4d382eed57
commit 23c2c49e52
5 changed files with 45 additions and 41 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import { getHandleBounds } from '../components/Nodes/utils';
import { ReactFlowState, FlowElement, Node, XYPosition } from '../types';
import {
ActionTypes,
ReactFlowActionTypes,
ADD_SELECTED_ELEMENTS,
BATCH_UPDATE_NODE_DIMENSIONS,
INIT_D3ZOOM,
@@ -42,7 +42,7 @@ import {
import { initialState } from './index';
export default function reactFlowReducer(state = initialState, action: ActionTypes): ReactFlowState {
export default function reactFlowReducer(state = initialState, action: ReactFlowActionTypes): ReactFlowState {
switch (action.type) {
case SET_ELEMENTS: {
const propElements = action.elements;