Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Tuple.Merge

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

Accurately merge the fields of L with the ones of L1. It is equivalent to the spread operator in JavaScript. [[Union]]s and [[Optional]] fields will be handled gracefully.

(⚠️ needs --strictNullChecks enabled)

Examples

Example 1

Type Parameters

L extends List
L1 extends List
optional
depth extends Depth = "flat"
optional
ignore extends object = BuiltIn
optional
fill extends any = undefined
definition: Cast<OMerge<L, L1, depth, ignore, fill>, List>