Skip to content

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

@sertonix

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.

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