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

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

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

Convert a tuple to an intersection of each of its types.

Type Parameters

T extends ReadonlyArray<unknown>
definition: [K in keyof T]: (x: T[K]) => void extends Record<number, (x: infer I) => void> ? I : never