Open sertonix opened 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.
flat
flatMap
any
Example:
const test = [[1]].flat();
test should have the type number[] but has any instead.
test
number[]
When using
flat
orflatMap
in a javascript file the type is set toany
. The type behaves as if the function were unknown.Example:
test
should have the typenumber[]
but has any instead.