Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

set.values().next() has wrong typeΒ #43750

Copy link
Copy link
@sdegutis

Description

@sdegutis
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.