What is the correct way to add type interface when listening to scroll event.
onMounted(() => {
...
// Call when mounted;
document.addEventListener("scroll", (e: ScrollEvent) => {
console.log(e); // Type interface of ScrollEvent
});
});