atom-typescript icon indicating copy to clipboard operation
atom-typescript copied to clipboard

javascript types wrong with Array.prototype.flat/faltMap

Open sertonix opened this issue 3 years ago • 0 comments
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.

sertonix avatar Feb 26 '22 00:02 sertonix