Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Tuple.Repeat

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias Tuple.Repeat
import { type Tuple } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Repeat } = Tuple;

Fill a [[List]] with N times A

Examples

Example 1

Type Parameters

A extends any
N extends number
optional
L extends List = []
definition: N extends unknown ? L extends unknown ? _Repeat<A, N, L> : never : never