News

TypeScript 3.6 beta is now available!

1 min read

Last week, the team behind TypeScript announced the availability of TypeScript 3.6 Beta. The full release of TypeScript 3.6 is scheduled for the end of the next month with a Release Candidate coming a few weeks prior. 

What’s new in TypeScript 3.6?

Stricter checking

TypeScript 3.6 comes with stricter checking for iterators and generator functions. The earlier versions didn’t let users of generators differentiate whether a value was yielded or returned from a generator. With TypeScript 3.6, users can narrow down values from iterators while dealing with them.

Simpler emit

The emit for constructs like for/of loops and array spreads can be a bit heavy so TypeScript opts for a simpler emit by default that supports array types, and helps in iterating on other types using the –downlevelIteration flag. With this flag, the emitted code is more accurate, but is larger.

Semicolon-aware code edits

Older versions of TypeScript added semicolons to the end of every statement which was not appreciated by many users as it didn’t go along with their style guidelines. TypeScript 3.6 can easily detect if a file uses semicolons while applying edits and if a file lack semicolons, TypeScript doesn’t add one.

DOM updates

Following are a few of the declarations that have been removed or changed within lib.dom.d.ts:

  • Instead of GlobalFetch, WindowOrWorkerGlobalScope is used.
  • Non-standard properties on Navigator no more exist.
  • webgl or webgl2 is used instead of experimental-webgl context.

To know more about this news, check out the official post

Read Next

Next.js 9 releases with built in zero-config TypeScript support, automatic static optimization, API routes and more

TypeScript 3.5 releases with ‘omit’ helper, improved speed, excess property checks and more

Material-UI v4 releases with CSS specificity, Classes boilerplate, migration to Typescript and more

 

 

 

Amrata Joshi

Share
Published by
Amrata Joshi

Recent Posts

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago

Gain Practical Expertise with the Latest Edition of Software Architecture with C# 9 and .NET 5

Software architecture is one of the most discussed topics in the software industry today, and…

3 years ago