Bug Report
π Search Terms
array spread, jsdoc spread operator, spread operator type
π Version & Regression Information
- This happens in every version I tried, I searched through the FAQ and issues for related issues.
β― Playground Link
Does not seem to occur in typescript.
π» Code
const mapOfStrings = new Map([["foo", "bar"]])
const arrayOfStrings = [...mapOfStrings.values()]
// ^ should be type string[]
π Actual behavior
The type shown in VSCode is any[] while it should be string[].
- VSCode 1.63.2 (commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3)
- OS: MacOS 12.0.1 (21A559)
- Typescript 4.5.4

π Expected behavior
The type should be string[] as shown below (this does work with Array.from()).
