Help me with a typescript generic
Can someone help me with this?
I have these types
And this Implementation
What should the TODO type be so that the callback prop event knows that it is the event of the current property so in data1 event is EventObject<Data1> and in data2 it is EventObject<Data2>
2 Replies
Yo
Still needing help?
If so, it should be this
thanks!