diff --git a/src/types/flow.ts b/src/types/flow.ts index a8c4f8ee..3b0a4dbd 100644 --- a/src/types/flow.ts +++ b/src/types/flow.ts @@ -1,10 +1,8 @@ -import { CSSProperties, ToRefs } from 'vue' +import { CSSProperties } from 'vue' import { GraphEdge, Edge, DefaultEdgeOptions } from './edge' import { GraphNode, CoordinateExtent, Node } from './node' import { ConnectionLineType, ConnectionMode } from './connection' import { KeyCode, PanOnScrollMode, UseZoomPanHelper } from './zoom' -import { Actions, ComputedGetters, State, FlowStore } from './store' -import { FlowHooksOn } from './hooks' import { DefaultEdgeTypes, DefaultNodeTypes, EdgeComponent, NodeComponent } from './components' export type FlowElement = GraphNode | GraphEdge @@ -133,11 +131,3 @@ export interface FlowProps { } export type FlowOptions = FlowProps - -export type UseVueFlow = { - id: string - store: FlowStore -} & FlowHooksOn & - ToRefs> & - ComputedGetters & - Actions diff --git a/src/types/store.ts b/src/types/store.ts index b9900404..12fcdaa8 100644 --- a/src/types/store.ts +++ b/src/types/store.ts @@ -133,3 +133,11 @@ interface StoreBase { export type Store = StoreBase & ToRefs> & Actions & ComputedGetters export type FlowStore = StoreBase & State & Actions & Getters + +export type UseVueFlow = { + id: string + store: FlowStore +} & FlowHooksOn & + ToRefs> & + ComputedGetters & + Actions