Type alias NestedArray<TObject, TReduce, TKeys>

NestedArray<TObject, TReduce, TKeys>: TKeys extends [infer TFirst, ...(infer TRest)]
    ? [TFirst, NestedArray<TObject, TReduce, TRest>][]
    : TReduce

Represents a nested/recursive Array type

The first generic "TObject" refers to the type of the data object that is available in the accessor functions. The second generic "TReduce" refers to the type of the data available at the deepest level (the result data). The third generic "TKeys" refers to the type of the keys at each level of the nestes Array.

Type Parameters

  • TObject

  • TReduce

  • TKeys extends unknown[]