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

Type of the value produced by clone

Remarks

Since 2.5.0

Type Parameters

  • T

  • N extends number

  • Rest extends T[] = []

Generated using TypeDoc