I'm trying to use the party-js lib in order to get the confetti effect working in a angular project.
However when using following code i get an error saying that this
has type any.
I tried using ':' and adding a type after but then i don't know what type I have to put after since it doesn't change the error and also gives me another one saying, that I now have 3 instead of 2 arguments.
document.querySelector(".button")!.addEventListener("click", function (e) {
party.confetti(this:);
});