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

x/live/deps.ts>Intersection

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
type alias Intersection
import { type Intersection } from "https://deno.land/x/live@1.57.22/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>>