Documentation - More on Functions
Functions are the basic building block of any application, whether they're local functions, imported from another module, or methods on a class. They're also values, and just like other values, TypeScript has many ways to describe how functions can be called. Let's learn about how to write types that describe functions.
https://www.typescriptlang.org/docs/handbook/2/functions.html#function-overloads