Type alias ArrayElement<ArrayType>

ArrayElement<ArrayType>: ArrayType[number]

Turns array elements into a type.

['name', 'email'] becomes 'name' | 'email'

Type Parameters

  • ArrayType extends readonly unknown[]

Generated using TypeDoc