Creates a union of non-negative integer literals from 0 up to (but not including) N.
Equivalent to 0 | 1 | ... | N-1.
Requires N to be a non-negative integer literal.
Type Parameters
Nextendsnumber
The upper bound (exclusive). Must be a non-negative integer literal.
Returns
A union type 0 | 1 | ... | N-1. Returns never if N is 0.
Creates a union of non-negative integer literals from 0 up to (but not including)
N. Equivalent to0 | 1 | ... | N-1. RequiresNto be a non-negative integer literal.