Skip to content

why the result of tuple to union using T[number] is disorder #42178

Closed
@HomyeeKing

Description

@HomyeeKing

version : ^4.0.3

you can find code here

or just look at this

type A = [1,2,3]
type B = A[number]

// expect ^= type B = 1 | 2 | 3
// output:  ^= type B = 3 |  1 | 2

I know it doesn't effect using, but I wonder the order mechanism

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