CloneValue: [number] extends [N]
    ? T[]
    : Rest["length"] extends N ? Rest : CloneValue<T, N, [T, ...Rest]>

Type of the value produced by clone

Type Parameters

  • T
  • N extends number
  • Rest extends T[] = []

Since 2.5.0