Bug Report
🔎 Search Terms
🕗 Version & Regression Information
Happens in both versions 4.2.3 and 4.3.0-beta
⏯ Playground Link
Playground link with relevant code
💻 Code
const s = new Set<string>();
s.values().next().value;
🙁 Actual behavior
Type of value is any.
🙂 Expected behavior
Type of value should probably be string | undefined or something.