书栈网 · BookStack 本次搜索耗时 0.032 秒,为您找到 7962 个相关结果.
  • TypeScript 3.1

    TypeScript 3.1 一些浏览器厂商特定的类型从lib.d.ts 中被移除 推荐: 细化的函数现在会使用{} ,Object 和未约束的泛型参数的交叉类型 TypeScript 3.1 一些浏览器厂商特定的类型从lib.d.ts 中被移除 TypeScript内置的.d.ts 库(lib.d.ts 等)现在会部分地从DOM规范的We...
  • TypeScript 2.4

    TypeScript 2.4 弱类型检测 推断返回值的类型 更严格的回调函数参数变化 Promises (嵌套)回调 更严格的泛型函数检查 从上下文类型中推荐类型参数 TypeScript 2.4 完整的破坏性改动列表请到这里查看:breaking change issues 。 弱类型检测 TypeScript 2.4引入了“弱...
  • TypeScript 2.1

    TypeScript 2.1 生成的构造函数代码将this 的值替换为super(...) 调用的返回值 继承内置类型如Error ,Array 和Map 将是无效的 const 变量和readonly 属性会默认地推断成字面类型 不对函数和类表达式里捕获的变量进行类型细化 没有注解的callback参数如果没有与之匹配的重载参数会触发implici...
  • TypeScript 1.6

    TypeScript 1.6 严格的对象字面量赋值检查 CommonJS的模块解析不再假设路径为相对的 函数和类声明为默认导出时不再能够与在意义上有交叉的同名实体进行合并 模块体以严格模式解析 标准库里DOM API的改动 系统模块输出使用批量导出 npm包的.js内容从’bin’移到了’lib’ TypeScript的npm包不会默认全局安装...
  • TypeScript 1.1

    Performance Improvements Better Module Visibility Rules Performance Improvements The 1.1 compiler is typically around 4x faster than any previous release. See this blog post f...
  • TypeScript 1.3

    Protected Tuple types Protected The new protected modifier in classes works like it does in familiar languages like C++, C#, and Java. A protected member of a class is visib...
  • TypeScript 1.5

    ES6 Modules Export Declarations Re-exporting Default Export Bare Import Destructuring in declarations and assignments Declarations Assignments namespace keyword let and ...
  • TypeScript 1.6

    JSX support New .tsx file extension and as operator Using React Using other JSX framworks Output generation Intersection types Example Local type declarations Class expre...
  • TypeScript 3.7

    Optional Chaining Nullish Coalescing Assertion Functions Better Support for never -Returning Functions (More) Recursive Type Aliases --declaration and --allowJs The useDefi...
  • TypeScript 3.8

    Type-Only Imports and Export ECMAScript Private Fields Which should I use? export * as ns Syntax Top-Level await es2020 for target and module JSDoc Property Modifiers B...