Type alias NonEmpty<T>

NonEmpty<T>: [T, ...T[]]

Utility type to represent a non-empty array.

Type Parameters

  • T