@geraintguan/ts-std-lib
    Preparing search index...

    Type Alias Unpack<T>

    Unpack: T extends (infer U)[] ? U : T

    Utility type that returns the element type of an array type.

    Type Parameters

    • T
    type Elements = (string | number)[];

    type Element = Unpack<Elements> // (string | number)