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

x/live/deps.ts>Diff

Deno Compose is a modern visual editor and app framework for dynamic, high-performance sites.
Go to Latest
type alias Diff
import { type Diff } from "https://deno.land/x/live@1.45.1/deps.ts";

Diff

Examples

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

// Expect: { name: string; visible: boolean; } type DiffProps = Diff<Props, DefaultProps>;

Type Parameters

T extends object
U extends object
definition: Pick<T, SetDifference<keyof T, keyof U>>