Skip to content

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

Closed
@cherryblossom000

Description

@cherryblossom000

TypeScript Version: 4.0.2

Search Terms: typo lib Set ReadonlySet keys

Code

const set = new Set()
set.keys()
;(set as ReadonlySet<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:

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