Closed
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: