✨ TypeScript Tip ✨
Function overloads with types
👉 Wrap type in `{}`
👉 Provide 2 different signatures
Allows to call the same function with different parameters, and different results
Runtime problems may apply 🙌
This pattern is useful in library-land to provide a better API for the end user