-
Notifications
You must be signed in to change notification settings - Fork 12.8k
set.values().next() has wrong type #43750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
const v = s.values().next();
if (v.done) {
v.value; // any
} else {
v.value; // string
} It would make more sense for |
@nmain Or |
@rbuckton I believe we have a duplicate of this? |
Ahh yes, this seems to be #33353 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
π Actual behavior
Type of
value
isany
.π Expected behavior
Type of
value
should probably bestring | undefined
or something.The text was updated successfully, but these errors were encountered: