Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Object.Unionize

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

Make the fields of O union the ones of O1

Examples

Example 1

Type Parameters

O extends object
O1 extends object
optional
K extends Key = Key
definition: [P in keyof O]: P extends K ? O[P] | At<O1, P> : O[P] & { }