Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>List.Repeat

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

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