fix(store): remove generic from node getter

# What's changed?

* generic causes type problem in d.ts file
This commit is contained in:
braks
2022-07-27 22:49:00 +02:00
committed by Braks
parent 376f91e264
commit b0fc5ada92
+3 -3
View File
@@ -1,5 +1,5 @@
import type { CSSProperties, ComputedRef, ToRefs } from 'vue'
import type { Dimensions, ElementData, Elements, FlowElements, FlowExportObject, FlowOptions, SnapGrid, XYPosition } from './flow'
import type { Dimensions, Elements, FlowElements, FlowExportObject, FlowOptions, SnapGrid, XYPosition } from './flow'
import type { DefaultEdgeTypes, DefaultNodeTypes, EdgeComponent, NodeComponent } from './components'
import type { Connection, ConnectionLineOptions, ConnectionLineType, ConnectionMode, Connector } from './connection'
import type { DefaultEdgeOptions, Edge, GraphEdge } from './edge'
@@ -199,9 +199,9 @@ export interface Getters {
/** filters hidden edges */
getEdges: GraphEdge[]
/** returns a node by id */
getNode: <Data = ElementData>(id: string) => GraphNode<Data> | undefined
getNode: (id: string) => GraphNode | undefined
/** returns an edge by id */
getEdge: <Data = ElementData>(id: string) => GraphEdge<Data> | undefined
getEdge: (id: string) => GraphEdge | undefined
/** returns all currently selected elements */
getSelectedElements: FlowElements
/** returns all currently selected nodes */