You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;// ^?
Bug Report
Default iterator
TReturn
type isany
. This causes code which works with iterators without a definedTReturn
type to returnany
when gettingnext().value
.Playground
🔎 Search Terms
iterator, set, treturn, next any
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
e1
should bestring | undefined
🙂 Expected behavior
e1
isany
The text was updated successfully, but these errors were encountered: