Type Alias Repeat<T, N, Init>

Repeat: N extends 0
    ? Init
    : Repeat<T, w_subtract<N, StringLength<T>>, `${Init}${T}`>

Type Parameters

  • T extends string
  • N extends number
  • Init extends string = ""