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

    TypeScript 2.7 元组现在具有固定长度的属性 在allowSyntheticDefaultImports 下,对于TS和JS文件来说默认导入的类型合成不常见 更严格地检查索引访问泛型类型约束 in 表达式被视为类型保护 在条件运算符中不减少结构上相同的类 CustomEvent 现在是一个泛型类型 TypeScript 2.7 ...
  • TypeScript 2.4

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

    TypeScript 1.7 从this 中推断类型发生了变化 类成员修饰符后面会自动插入分号 TypeScript 1.7 完整的破坏性改动列表请到这里查看:breaking change issues 。 从this 中推断类型发生了变化 在类里,this 值的类型将被推断成this 类型。 这意味着随后使用原始类型赋值时可能会发生错误。 ...
  • 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 fo...
  • TypeScript 1.7

    async /await support in ES6 targets (Node v4+) Example Support for --target ES6 with --module Example this -typing ES7 exponentiation operator Example Improved checking f...
  • TypeScript 2.2

    Support for Mix-in classes First some terminology Putting all of the above rules together in an example object type Support for new.target Example Better checking for null ...
  • TypeScript 2.8

    Conditional Types Example Distributive conditional types Example Example Example Type inference in conditional types Predefined conditional types Example Improved control ...
  • TypeScript 3.2

    strictBindCallApply Caveats Generic spread expressions in object literals Generic object rest variables and parameters BigInt Caveats Non-unit types as union discriminants ...
  • TypeScript 4.1

    Template Literal Types Key Remapping in Mapped Types Recursive Conditional Types Checked Indexed Accesses (--noUncheckedIndexedAccess ) paths without baseUrl checkJs Implie...
  • TypeScript 4.2

    Smarter Type Alias Preservation Leading/Middle Rest Elements in Tuple Types Stricter Checks For The in Operator --noPropertyAccessFromIndexSignature abstract Construct Signa...