Type Alias NonEmpty<T>

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

A list that cannot be empty. The kinds whose schema requires at least one child take one.

Type Parameters

  • T
const items: NonEmpty<ListItemInput> = ['Candy Kingdom', 'Ice Kingdom']