fix(edges): add type property to EdgeProps
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add `type` property to `EdgeProps` to match `NodeProps` behavior
|
||||||
@@ -149,7 +149,7 @@ export type EdgeTextProps = Omit<SVGAttributes<SVGElement>, 'x' | 'y'> &
|
|||||||
*/
|
*/
|
||||||
export type EdgeProps<EdgeType extends Edge = Edge> = Pick<
|
export type EdgeProps<EdgeType extends Edge = Edge> = Pick<
|
||||||
EdgeType,
|
EdgeType,
|
||||||
'id' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target' | 'selectable' | 'deletable'
|
'id' | 'type' | 'animated' | 'data' | 'style' | 'selected' | 'source' | 'target' | 'selectable' | 'deletable'
|
||||||
> &
|
> &
|
||||||
EdgePosition &
|
EdgePosition &
|
||||||
EdgeLabelOptions & {
|
EdgeLabelOptions & {
|
||||||
|
|||||||
Reference in New Issue
Block a user