Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Tuple.Patch

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

Complete the fields of L with the ones of L1. This is a version of [[Merge]] that does NOT handle optional fields, it only completes fields of O with the ones of O1 if they don't exist.

(⚠️ 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 = never
definition: Cast<OPatch<L, L1, depth, ignore, fill>, List>