I encountered the following error message:
TS2339: Property 'target' does not exist on type 'Event'.
while working with this code snippet:
this.$Element.on('click', SELECTOR, (event: JQuery.Event) => {
const $ClickedLink: JQuery<HTMLElement> = JQuery(event.target);
//
}
Additionally, event.currentTarget
is also undefined. This makes me wonder if these properties are properly defined in the JQuery types?
It is worth noting that there were no errors present when I compiled the JavaScript code.
Just to clarify, this code does not belong to Angular! It is a combination of JQuery and class-based OOP concepts.