Useful Typescript Types
advanced typescript types
The simplest way to define a function type is by using a type alias.
However, it is also possible to do it with an interface.
This is useful when you need a class to implement a specific constructor.
Get Function Return Type
Define a Function Type with a Different Result Type
Filtering by Return Type
Extending Interfaces and Classes