@pleisto/active-support
    Preparing search index...

    Type Alias Repeat<Char, Count, Joined, Acc>

    Repeat: Acc["length"] extends Count
        ? Joined
        : Repeat<Char, Count, `${Joined}${Char}`, [0, ...Acc]>

    Repeat string

    Type Parameters

    • Char extends string
    • Count extends number
    • Joined extends string = ""
    • Acc extends 0[] = []
    const x: Repeat<'1' | '2', 4> = '1122'