We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge
type
Node
Definition for Node:
export type Node<T = any, U extends string | undefined = string | undefined> = { id: string; data: T; type?: U; ... }
Usage:
export type MyNode = Node<MyNodeData, 'my-node'>
Perfect. The def for Edge is inconsistent:
export type Edge<T = any> = DefaultEdge<T> | SmoothStepEdgeType<T> | BezierEdgeType<T>; ... type DefaultEdge<T = any> = { id: string; data?: T; type?: string; ... }
This means you can't enforce that generic props map to a discrete number of edge types throughout your app.
The text was updated successfully, but these errors were encountered:
Actually should mention I'm on v11 and these are the exported types I'm seeing. Maybe fixed in:
cc: @moklick ? Happy to close out if so
Sorry, something went wrong.
Yep, that's fixed in v12 https://github.com/xyflow/xyflow/blob/main/packages/system/src/types/edges.ts
No branches or pull requests
Definition for
Node
:Usage:
Perfect. The def for
Edge
is inconsistent:This means you can't enforce that generic props map to a discrete number of edge types throughout your app.
The text was updated successfully, but these errors were encountered: