Type alias Range<Start, Stop, Result, Padding, Current>
Range<Start, Stop, Result, Padding, Current>: Current extends Stop ? Current extends Start ? [Current] : Result extends [] ? [] : [...Result, Current] : Current extends Start ? Range<Start, Stop, [Current], Padding> : Result extends [] ? Range<Start, Stop, [], [...Padding, 0]> : Range<Start, Stop, [...Result, Current], Padding> Type Parameters
Start extends number
Stop extends number
Result extends number[] = []
Padding extends 0[] = []
Current extends number = [...Padding, ...Result]["length"] & number
Creates range between two positive numbers using tail recursion.