Skip to content

seems like a regression in latest v1.5.3 with Type checking #477

Answered by bcakmakoglu
ghiscoding asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, so after re-checking, the prop types are correct.
As you guessed correctly, the types need to match the actual interfaces, so for nodes dragHandle has to be optional, same as markerEnd and style for edges - that's just the definition in the interfaces as they could be undefined 😄
Other than that I don't see any problem.
Before the change node and edge props were typed as any which isn't accurate as they're not just any but NodeProps or EdgeProps

I hope this helps ^^

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@ghiscoding
Comment options

@bcakmakoglu
Comment options

@bcakmakoglu
Comment options

@ghiscoding
Comment options

Answer selected by bcakmakoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants