Type Alias ProtectIfNonEmptyArray<T, V>

ProtectIfNonEmptyArray: T extends readonly [x: unknown, rest: unknown[]]
    ? readonly V[]
    : V[]

Type Parameters

  • T extends readonly unknown[]
  • V = T[number]