Once we import the TS check service, we will be able to write JS doctype assertions in front of the parameters and enable type checking. We'll write a direct type, and in the curly braces, we'll pass it in the type number.
We can quickly fix this by changing this into a number. You can see that that error is gone. If we change this back into a string, the error is reproduced.