๐ Bug HuntTS TypeScript Hardโก+35 XP
Missing Return in Union
TypeScript reports not all code paths return a value.
๐ Find the bug
1
function parse(val: string | number): string {2
if (typeof val === "string") return val;3
}๐ The bug is on line 3