atom-typescript
atom-typescript copied to clipboard
javascript types wrong with Array.prototype.flat/faltMap
trafficstars
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.