Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>T.Repeat

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

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