TypeScript 5.1 正式发布
TypeScript 5.1 已正式发布。 重要变化 更智能地检查未定义返回值的函数 (undefined-Returning Functions) 旧代码 function foo() { // no return } // x = undefined let x = foo(); // fine - we inferred that 'f1' returns...
TypeScript 5.1发布,重要变化包括更智能地检查未定义返回值的函数、移除了Get访问器的返回类型必须可分配给其Set访问器类型的限制、支持在Module Resolution中查询typeRoots等。