Useful Typescript Types advanced typescript types Function 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.

Constructor Definition

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 Global Module Level