How can I conditionally set return type based on params

The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.
Was this page helpful?