I konw there is a way in typescript like this:
function foo(arg: number): string; function foo(arg: string): number; function foo(): any { if (typeof argume