Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>T.Unionize

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

Make the fields of L union the ones of L1

Examples

Example 1

Type Parameters

L extends List
L1 extends List
optional
K extends Key = Key
definition: [P in keyof L]: P extends K ? L[P] | At<L1, P> : L[P]