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

x/deco/deps.ts>Overwrite

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
type alias Overwrite
import { type Overwrite } from "https://deno.land/x/deco@1.75.1/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>