Skip to content

type definitions don't work for union types #8

@ajafff

Description

@ajafff
arrify(Boolean() ? [1, 2] : 3);

The above returns the type (number | number[])[]. This doesn't match the runtime value of number[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions