TypeScript 5.2 is set to introduce a fresh keyword called ‘using,’ which will provide a convenient way to dispose of objects having a Symbol.dispose function when they go out of scope. Here’s an example showcasing the usage of the new ‘using’ keyword: { const getResource = () => { return { [Symbol.dispose]: () => { […]
We help organisations accelerate their software development! Hire Us