What Is The Right Syntax For Typescript Functions