Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deepmergets/src/types/utils.ts>SimplifyObject

Deeply merge 2 or more objects respecting type information.
Latest
type alias SimplifyObject
import { type SimplifyObject } from "https://deno.land/x/deepmergets@v7.1.3/src/types/utils.ts";

Simplify a complex type such as a union or intersection of objects into a single object.

Type Parameters

T extends { }
definition: [K in keyof T]: T[K] & { }