Python-Style Kwargs in TypeScript
Python-style kwargs in TypeScript 2025-09-21 PythonTypeScript My TypeScript function signatures always start small. There's usually an optional argument or two, but the call sites are easy to reason about: const greet = ( name : string , prefix = "Hello" ) => ` ${ prefix } , ${ name } . ` ; greet ( "Alice" ) ; greet ( "Bob" , "!" ) ; But as these functions grow, it's cumbersome to specify the last optional argument while using defaults for the rest: const greet = ( name : string , prefix = "