In TypeScript, if I declare a function like this
function foo(arg1?: any, arg2?: any)
Then the compiler won't complain if I call the function with
- Zero arguments
- One argument
- Two arguments
How should I declare the function if I want the compiler to complian about one argument but not two or zero?