TypeScript Fundamentals - Basic Types - Functions: Type Parameters and Returns In TypeScript
In this lesson we lean how to define the type of function parameters, ensuring those who call the function provide proper data. We also define the type of what is returned from the function.