The syntax for various functions and function types in TypeScript with simple examples.