2ality
2ality.com/ 6
Articles
6月18日 23:02
Last updated
No Image
TypeScript: supporting the new class <code>Iterator</code> at the type level
In ECMAScript 2025, JavaScript gets a class Iterator with iterator helper methods. This class conflicts with TypeScript’s existing types for iterators. In this blog post, we explore why that is and how TypeScript solves that conflict.
2ality
library tool