Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 533 Bytes

File metadata and controls

23 lines (14 loc) · 533 Bytes

Home > types-kit > Fill

Fill type

Create a tuple filled with V, and the length of the tuple is L.

Signature:

export type Fill<L extends number, V> = L extends L ? InternalFill<L, V> : never

References: InternalFill

Example

// Expect: [number, number, number]
type Foo = Fill<3, number>