Module

x/live/deps.ts>Diff

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