style: import type

This commit is contained in:
Maël Gangloff
2024-12-31 13:55:42 +01:00
parent 28462683f9
commit b68ce10614
40 changed files with 104 additions and 75 deletions

View File

@@ -1,5 +1,6 @@
import dagre from 'dagre'
import {Edge, Node, Position} from '@xyflow/react'
import type {Edge, Node} from '@xyflow/react'
import { Position} from '@xyflow/react'
export const getLayoutedElements = (nodes: Node[], edges: Edge[], direction = 'TB') => {
const dagreGraph = new dagre.graphlib.Graph()