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: ```js const test = [[1]].flat(); ``` `test` should have the type `number[]` but has any instead.