Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《Typescript 3.2 新特性》 #117

Closed
ascoders opened this issue Dec 13, 2018 · 1 comment
Closed

精读《Typescript 3.2 新特性》 #117

ascoders opened this issue Dec 13, 2018 · 1 comment

Comments

@ascoders
Copy link
Owner

ascoders commented Dec 13, 2018

Ts 发布 3.2 了,评论评论新特性吧,官方文档地址:https://blogs.msdn.microsoft.com/typescript/2018/11/29/announcing-typescript-3-2/


精读《Typescript 3.2 新特性》

@ascoders ascoders changed the title 精读《Typescript》 精读《Typescript 3.2 新特性》 Dec 13, 2018
@eos3tion
Copy link
Contributor

  • strictBindCallApply
    这个挺有用,一开了以后,马上发现一些接口调整后,遗漏的代码改动,不过目前不支持直接把 arguments 作为参数赋值,会提示无法将 Argument of type 'IArguments' is not assignable to parameter of type XXX

  • Improved narrowing for tagged unions
    这个能有更多新玩法了,以前一些不好做类型约束的,现在做起来更方便,也更容易重构代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants