Bug Report
Default iterator TReturn type is any. This causes code which works with iterators without a defined TReturn type to return any when getting next().value.
constset1=newSet<string>();// Should be `string | undefined` but is `any`conste1=set1.values().next().value;// ^?
Playground
🔎 Search Terms
iterator, set, treturn, next any
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
constset1=newSet<string>();// Should be `string | undefined` but is `any`conste1=set1.values().next().value;// ^?
🙁 Actual behavior
e1 should be string | undefined
🙂 Expected behavior
e1 is any
Bug Report
Default iterator
TReturntype isany. This causes code which works with iterators without a definedTReturntype to returnanywhen gettingnext().value.Playground
🔎 Search Terms
iterator, set, treturn, next any
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
e1should bestring | undefined🙂 Expected behavior
e1isany