seems like a regression in latest v1.5.3 with Type checking #477
-
It looks like a possible regression in latest v1.5.3 after I upgraded from 1.5.1, in my App it now shows Type error that I didn't have before If I comment out Custom Edge is also complaining of Type errors, it also wasn't before the upgrade For the Custom Edge, it starts working after I comment out oh wait I just got them working after making these 2 optional, to make them the same as the extended |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Interesting... |
Beta Was this translation helpful? Give feedback.
-
Alright, so after re-checking, the prop types are correct. I hope this helps ^^ |
Beta Was this translation helpful? Give feedback.
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 asmarkerEnd
andstyle
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 justany
butNodeProps
orEdgeProps
I hope this helps ^^