Skip to content

Typo in doc comments for Set.keys and ReadonlySet.keys #40164

Description

TypeScript Version: 4.0.2

Search Terms: typo lib Set ReadonlySet keys

Code

constset=newSet()set.keys();(setasReadonlySet<unknown>).keys()

Expected behavior:

Documentation for Set.keys and ReadonlySet.keys should be

Despite its name, returns an iterable of the values in the set.

(full stop/period at the end)

Actual behavior:

Despite its name, returns an iterable of the values in the set,

(comma at the end)

Playground Link:link

Related Issues:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions