ts-type-forge
    Preparing search index...
    Reverse: ReverseImpl<L, readonly []>

    Reverses the order of elements in a readonly tuple L.

    Type Parameters

    • L extends readonly unknown[]

      The readonly tuple type.

    A new readonly tuple type with elements reversed.

    type R1 = Tuple.Reverse<[1, 2, 3]>; // readonly [3, 2, 1]
    type R2 = Tuple.Reverse<[]>; // readonly []