Parameters<Type>
Constructs a tuple type from the parameters of the given function.
It is useful when you want to reuse or infer the argument types from a function elsewhere.
Suppose you have a function that you want to wrap with another function. You can ensure the arguments of the wrapping function always match the arguments of the function it is calling, to safely pass the arguments of one function to another.
You can construct the equivalent of Parameters
with conditional types and infer
.