Represents a type that can be either a single value of type T or an array of values of type T.
T
type T1 = EitherOneOrMany<number>; 10; // Validtype T2 = EitherOneOrMany<number>; [20, 30]; // Also valid Copy
type T1 = EitherOneOrMany<number>; 10; // Validtype T2 = EitherOneOrMany<number>; [20, 30]; // Also valid
Represents a type that can be either a single value of type
T
or an array of values of typeT
.