TypeScript function whose parameter should accept one of two types ...

TypeScript function whose parameter should accept one of two types ...

More to explore

Based on this image's title: “TypeScript function whose parameter should accept one of two types ...