Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptfunction overloadsSingle-choice MCQ

Given these overloads, which call is a type error?

function f(x: string): string; function f(x: number): number; function f(x: string | number): string | number { return x; }