-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? # to your account
set.values().next() has wrong type #43750
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 |
# for free
to join this conversation on GitHub.
Already have an account?
# 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: