Skip to main content
Module

x/deco/deps.ts>Intersection

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Very Popular
Go to Latest
type alias Intersection
import { type Intersection } from "https://deno.land/x/deco@1.40.2/deps.ts";

Intersection

Examples

type Props = { name: string; age: number; visible: boolean }; type DefaultProps = { age: number };

// Expect: { age: number; } type DuplicateProps = Intersection<Props, DefaultProps>;

Type Parameters

T extends object
U extends object
definition: Pick<T, Extract<keyof T, keyof U> & Extract<keyof U, keyof T>>