Syarx
TTCTheo's Typesafe Cult
•Created by Syarx on 2/8/2024 in #questions
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>
7 replies