TypeStrong / atom-typescript

The only TypeScript package you will ever need
https://atom.io/packages/atom-typescript
MIT License
1.13k stars 205 forks source link

javascript types wrong with Array.prototype.flat/faltMap #1605

Open sertonix opened 2 years ago

sertonix commented 2 years ago

When using flat or flatMap in a javascript file the type is set to any. The type behaves as if the function were unknown.

Example:

const test = [[1]].flat();

test should have the type number[] but has any instead.