Open bcakmakoglu opened 1 month ago
We have the same issue, need it for curvature setting and don't want to mess with ts-ignores. Working around with:
import { Edge as XYFlowEdge } from "@xyflow/react";
type Edge = XYFlowEdge & { pathOptions?: { curvature: number } };
Describe the Bug
In v11 the typing for the
Edge
type allowspathOptions
for the default edge-types (bezier, step and smoothstep) while in v12pathOptions
is not recognized anymore and will cause TypeScript to report an error for it even though the options are still taken and passed to the edge component.Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Set up a basic v12 example and use sth like this
Expected behavior
pathOptions
should be a valid property on the default edge types previously mentioned.Screenshots or Videos
No response
Platform
Additional context
No response