Set default parameter values in TypeScript functions while maintaining type safety and handling edge cases properly.