Skip to content

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

Description

@sertonix

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions