Arrayable
@guoba-ai/utils / types / Arrayable
Type Alias: Arrayable<T>
type Arrayable<T> = T | T[];Defined in: types.ts:9
A value that can be either a single item or an array of items.
Type Parameters
T
T
Example
type Input = Arrayable<string> // string | string[]