TypeTensor - v0.1.0
    Preparing search index...

    Type Alias LastDim<S>

    LastDim: S extends readonly [...unknown[], infer Last]
        ? Last extends number ? Last : never
        : never

    Get the last dimension with proper number constraint

    Type Parameters

    type LastDim = LastDim<[2, 3, 4]> // 4