@pengzhanbo/utils - v3.9.0
    Preparing search index...

    Type Alias FirstArray<T>

    FirstArray: T extends [infer U, ...any[]] ? U : Fn

    Get the type of the first element in the array

    获取数组的第一个元素类型

    Type Parameters

    • T extends any[]

      The type of elements in the array / 数组元素的类型

    The type of the function / 函数的类型