Skip to content

Type Alias: MultiplyArray<T>

ts
type MultiplyArray<T> = { [K in keyof T]: T[K][] };

Converts each element of a tuple into an array of that element type.

Type Parameters

Type ParameterDescription
T extends unknown[]The tuple to transform.