Given the overload set below, why does the compiler report an error on the implementation signature?
function format(value: string): string;
function format(value: number): number;
function format(value: string | number): boolean {
return Boolean(value);
}