Introduction
A type alias for functions helps you give a simple name to a function's shape. This makes your code easier to read and reuse.
When you want to describe what kind of function you expect as input or output.
When you have many functions with the same parameters and return type.
When you want to make your code clearer by naming function types.
When you want to avoid repeating the same function type everywhere.
When you want to check that functions follow a specific pattern.