-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
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 |
RyanCavanaugh
added
the
Needs Investigation
This issue needs a team member to investigate its status.
label
Apr 20, 2021
@rbuckton I believe we have a duplicate of this? |
Ahh yes, this seems to be #33353 |
rbuckton
removed
the
Needs Investigation
This issue needs a team member to investigate its status.
label
Oct 22, 2024
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: