Calculates the maximum value within a union of non-negative integer literals N (which must extend Uint10).
N
Uint10
A union of non-negative integer literals up to 1023 (Uint10).
The largest integer literal present in the union N.
type U2 = 0 | 1 | 2;expectType<Max<U2>, 2>('=');expectType<Max<5>, 5>('=');expectType<Max<Uint10>, 1023>('='); Copy
type U2 = 0 | 1 | 2;expectType<Max<U2>, 2>('=');expectType<Max<5>, 5>('=');expectType<Max<Uint10>, 1023>('=');
Calculates the maximum value within a union of non-negative integer literals
N(which must extendUint10).