Hugo MartinetinlaliloHow to make TypeScript infer the number and types of parameters in a functionWe will see how to type a function to make sure its first argument determines whether there should be a second one, along with its type…May 2, 2022May 2, 2022