TypeScript 5.1 正式发布

Lenix at 
TypeScript 5.1 已正式发布。重要变化更智能地检查未定义返回值的函数 (undefined-Returning Functions)旧代码 function foo() { // no return } // x = undefined let x = foo();// fine - we inferred that 'f1' returns 'void' function f1() { // …The post TypeScript 5.1 正式发布 first appeared on Lenix Blog.……