OneOrMany<T>
typeAccepts either a single value or a readonly array of that value. Useful for APIs that take one-or-many keys.
Definition
type
type OneOrMany<T> = T | readonly T[]T | readonly T[]
Type parameters
| Name | Type | Description |
|---|---|---|
T | — |
Accepts either a single value or a readonly array of that value. Useful for APIs that take one-or-many keys.
type OneOrMany<T> = T | readonly T[]T | readonly T[]
| Name | Type | Description |
|---|---|---|
T | — |