Skip to main content
Module

x/deco/deps.ts>Diff

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 Diff
import { type Diff } from "https://deno.land/x/deco@1.40.2/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>>