Skip to content

VariadicArgs

VariadicArgs<T> = [readonly T[]] | T[]

Defined in: packages/core/src/function/variadic-args.ts:33

Rest parameter type for a function overloaded to accept an array or loose values.

T

The element type. Must not itself be an array type: the two shapes are told apart by looking at the first argument, so VariadicArgs<number[]> would be ambiguous.