TLDR Web Dev · ARTICLES & TUTORIALS
TYPESCRIPT 5.2'S NEW KEYWORD: 'USING'
Summary from the TLDR Web Dev newsletter
TypeScript 5.2 will introduce a new keyword - 'using' - that can be used to dispose of anything with a Symbol.dispose function when it leaves scope. The ‘using’ keyword will be extremely useful for managing resources like file handles, database connections, and more. This article goes through various use cases with detailed explanations and code examples.