TypeScript 4.0 New Features

$ npm install typescript@beta

https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/

Variadic Tuple Types

可变参数元组类型



Labeled Tuple Elements

标记的元组元素



Class Property Inference from Constructors

构造函数的类属性推断



Short-Circuiting Assignment Operators

短路赋值运算符

let values: string[];

// Before
(values ?? (values = [])).push("hello"); // After
(values ??= []).push("hello");
a ||= b;

// actually equivalent to

a || (a = b);

unknown on catch Clause Bindings

捕获子句绑定未知



Custom JSX Factories

自定义 JSX 工厂



Speed Improvements in build mode with --noEmitOnError

改善了 --noEmitOnError 构建模式下的速度



--incremental with --noEmit

--incremental 和 --noEmit



Editor Improvements

编辑器改进

/** @deprecated */ Support

Partial Editing Mode at Startup
启动时的部分编辑模式 Smarter Auto-Imports
更智能的自动导入

Breaking Changes

重大变化

lib.d.ts Changes
lib.d.ts 的变化 Properties Overridding Accessors (and vice versa) is an Error
属性覆盖访问器(反之亦然)是错误 Operands for delete must be optional
删除操作数必须是可选的 Usage of TypeScript’s Node Factory is Deprecated
使用 TypeScript 的 Node Factory 已弃用





refs

https://www.typescriptlang.org/zh/

https://www.typescriptlang.org/play

the new typescript website

https://devblogs.microsoft.com/typescript/announcing-the-new-typescript-website/

Fluent Design

https://www.microsoft.com/design/fluent/



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. hibernate不同版本获取获取sessionFactory
  2. 微信小程序demo汇总
  3. SQL Server Profiler工具
  4. ngcordova 监控网络制式改变
  5. WPF 绑定五(本身就是数据源)
  6. DOS 命令 attrib:修改文件属性
  7. hysdk代码解析
  8. c#基础语言编程-常用函数
  9. 快速挂载和分离VHD文件的小脚本
  10. Quartz 2D 初步
  11. Java框架之Mybatis(一)
  12. Unity3d 基本设计开发 原则(提高代码可读性)
  13. vue-Swiper-awsome
  14. [转]Cordova - 彻底搞定IOS编译!
  15. mac 遇到的奇怪问题?
  16. php开启curl不成功原因
  17. 2019.01.23 hdu1693 Eat the Trees(轮廓线dp)
  18. Eclipse 配置 maven 的两个 settings 文件
  19. spring boot 拦截器之WebMvcConfigurerAdapter
  20. PHP-006

热门文章

  1. 览器全面禁用三方 Cookie 全栈前端精选 4月16日
  2. @functools.lru_cache()
  3. 回归(Regression)
  4. JMeter多个请求按照比例并发的几种方式
  5. Flink-v1.12官方网站翻译-P026-State Backends
  6. JDK中jps、jinfo、jstat、jstack、jmap、jconsole等命令简介
  7. Educational Codeforces Round 21
  8. Codeforces Global Round 8 D. AND, OR and square sum(位运算)
  9. Codeforces Round #687 (Div. 2, based on Technocup 2021 Elimination Round 2) B. Repainting Street (枚举)
  10. ACM#学习心得0