Typescript Function Overloading Example