Type alias OneOrMany<T>

OneOrMany<T>: T | readonly T[]

Utility type to represent a value that can be either a single value or an array of values.

Type Parameters

  • T