OneOrMany<T>

type
react/src/hooks/hooks.ts:44

Accepts 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

NameTypeDescription
T