-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Description
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:
DanielRosenwasser
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this