Skip to main content
Module

x/domain_functions/src/index.ts>MergeObjs

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
type alias MergeObjs
Re-export
import { type MergeObjs } from "https://deno.land/x/domain_functions@v2.6.0/src/index.ts";

Merges the data types of a list of objects.

Examples

type MyObjs = [ { a: string }, { b: number }, ] type MyData = MergeObjs // ^? { a: string, b: number }

Type Parameters

Objs extends unknown[]
optional
output = { }
definition: Objs extends [infer first, ...infer rest] ? MergeObjs<rest, Prettify<Omit<output, keyof first> & first>> : output