I\'m trying to get rid of my tslint error Type declaration of \'any\' loses type-safety.
but I\'m struggling to figure out what the correct type would be for the Ev
You should be using event.currentTarget. React is mirroring the difference between currentTarget (element the event is attached to) and target (the element the event is currently happening on). Since this is a mouse event, type-wise the two could be different, even if it doesn't make sense for a click.
https://github.com/facebook/react/issues/5733 https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget