fix(store): remove generic from node getter
# What's changed? * generic causes type problem in d.ts file
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import type { CSSProperties, ComputedRef, ToRefs } from 'vue'
|
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 { DefaultEdgeTypes, DefaultNodeTypes, EdgeComponent, NodeComponent } from './components'
|
||||||
import type { Connection, ConnectionLineOptions, ConnectionLineType, ConnectionMode, Connector } from './connection'
|
import type { Connection, ConnectionLineOptions, ConnectionLineType, ConnectionMode, Connector } from './connection'
|
||||||
import type { DefaultEdgeOptions, Edge, GraphEdge } from './edge'
|
import type { DefaultEdgeOptions, Edge, GraphEdge } from './edge'
|
||||||
@@ -199,9 +199,9 @@ export interface Getters {
|
|||||||
/** filters hidden edges */
|
/** filters hidden edges */
|
||||||
getEdges: GraphEdge[]
|
getEdges: GraphEdge[]
|
||||||
/** returns a node by id */
|
/** returns a node by id */
|
||||||
getNode: <Data = ElementData>(id: string) => GraphNode<Data> | undefined
|
getNode: (id: string) => GraphNode | undefined
|
||||||
/** returns an edge by id */
|
/** returns an edge by id */
|
||||||
getEdge: <Data = ElementData>(id: string) => GraphEdge<Data> | undefined
|
getEdge: (id: string) => GraphEdge | undefined
|
||||||
/** returns all currently selected elements */
|
/** returns all currently selected elements */
|
||||||
getSelectedElements: FlowElements
|
getSelectedElements: FlowElements
|
||||||
/** returns all currently selected nodes */
|
/** returns all currently selected nodes */
|
||||||
|
|||||||
Reference in New Issue
Block a user