Exercise #127: Generics In Function Overloads
TypeScript Generics ยท 05-function-overloads
Go back to exercises
Open in TypeScript Playground
Goal
Goal: Add overloads so input `1` returns `2`, otherwise return the input type.
Check Solution
Run "Check Solution" to validate your code in the browser.