TypeScript flags when I call a function that takes two parameters max with three arguments as an issue in many contexts, but not in contexts like this.
I understand why they chose to do this, but I reach for better type systems any time I have the choice.
Practice safe interactions - say no to unprotected injections.