TypeScript 5.2 is now available in a beta release. The next planned update of Microsoft’s strongly typed JavaScript, TypeScript 5.2 supports the explicit resource management feature planned for JavaScript’s ECMAScript standard.
TypeScript 5.2 reached a beta phase on June 30, according to a Microsoft bulletin. Explicit resource management is intended to address a common pattern in software development regarding the lifetime and management of resources such as I/O and memory. The key idea is to support resource disposal, or clean-up work, as a first-class idea in JavaScript. This begins with adding a new built-in symbol called Symbol.dispose. For convenience, TypeScript defines a new global type called Disposable.
