TypeScript 5.6 beta distinguishes iterator output from completion
engineeringtypescriptiteratorstypescompilerIterator results have different meanings before and after completion. TypeScript 5.6 beta tightens the built-in return type and adds helper declarations while also detecting suspicious truthy expressions.