Exercise #126: Function Overloads Vs Union Types
TypeScript Generics ยท 05-function-overloads
Go back to exercises
Open in TypeScript Playground
Goal
Goal: Type the parameter as either a function or an object with a `run` method.
Check Solution
Run "Check Solution" to validate your code in the browser.