Добавить новость
ru24.net
News in English
Январь
2024

TypeScript 5.4 beta arrives

0

TypeScript 5.4, a planned update to the strongly typed JavaScript variant from Microsoft, has reached beta availability. New capabilities include preserved narrowing within function closures created after the last assignment and a NoInfer type to block inferences to valid but unwanted types.

Released January 29, TypeScript 5.4 can be accessed via NuGet or NPM. In NPM, use the following command:

npm install -D typescript@beta

TypeScript 5.4 makes narrowing smarter. Detailing the improvement, Microsoft said a common pain point in TypeScript was that narrowed types were not always preserved within function closures. In TypeScript 5.4, when parameters and let variables are used in non-hoisted functions, the type checker will look for a last assignment point. If one is found, TypeScript can narrow from outside the containing function.

To read this article in full, please click here




Moscow.media
Частные объявления сегодня





Rss.plus




Спорт в России и мире

Новости спорта


Новости тенниса
Дарья Касаткина

Касаткина проиграла американке Пегуле и завершила выступление на турнире в Дохе






Синоптик Шувалов предупредил о морозах до -20 °С в ряде регионов

Муниципальная премия «Служение»: новые номинации и рекордный отклик

«Ъ»: МГВС отклонил иск жены экс-мэра Сочи Копайгородского о возвращении на СВО

В Балашихе построили паркинг на 300 мест