If you come to TypeScript (or to JavaScript, for that matter) from another language, it's easy to misunderstand how functions are handled. The major difference between functions in ...
TypeScript 6.0 is intended to be the last release based on the current JavaScript codebase, before a Go-based compiler and language service debuts in TypeScript 7.0.