Skip to main content
Module

x/blocks/deps.ts>Overwrite

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

Overwrite

Examples

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

// Expect: { name: string; age: string; visible: boolean; } type ReplacedProps = Overwrite<Props, NewProps>;

Type Parameters

T extends object
U extends object
optional
I = Diff<T, U> & Intersection<U, T>
definition: Pick<I, keyof I>