Categories
Development

TypeScript: click event’s .target property fails to be found in EventTarget object

In the code below, TypeScript seems to be inspecting what I believe is a base class EventTarget but it can not find the target property. It was working in regular JS before I recently converted this project to TS, so clearly the target property must be there. The alternative is I’m typing this variable incorrectly. […]