Currently, I am utilizing Vue and TypeScript in an attempt to adjust the style of an element.
let changeStyle = (event: MouseEvent) => {
if (event.target) {
event.target.style.opacity = 1;
Although the code is functional, TypeScript consistently presents me with the error:
Property 'style' does not exist on type 'EventTarget'.
Is there a solution to this issue?