/** * Represents an array that contains at least one element * @example * const arr: NonEmptyArray = [1, 2, 3]; // Valid * const invalid: NonEmptyArray = []; // TypeScript error */ export type NonEmptyArray = [T, ...T[]];