Reactjs – How to make a props that support three types of different function in typescript?
I have the following props interface that should technically support 3 different types of functions all over the app. The current issue is with the last function – for some reason, it is not working and showing the following errors.…