What are the proper typescript types for addEventListener mousemove and its event argument?
What are the proper typescript types for addEventListener mousemove and it’s event argument? Being explicit will set you free: onMouseMove: { (event: MouseEvent): void } = (event: MouseEvent) => { } Or, let TypeScript infer it from assignment 🌹: onMouseMove = (event: MouseEvent) => { }