Skip to main content
Module

x/scaffold/src/deps/types.ts>Merge

scaffold your next project with style and 💗
Latest
type alias Merge
import { type Merge } from "https://deno.land/x/scaffold@0.3.0/src/deps/types.ts";

Merge two types into a new type. Keys of the second type overrides keys of the first type.

Examples

Example 1

import type {Merge} from 'type-fest';

type Foo = {
	a: number;
	b: string;
};

type Bar = {
	b: number;
};

const ab: Merge<Foo, Bar> = {a: 1, b: 2};

Type Parameters

FirstType
SecondType
definition: Simplify<Merge_<FirstType, SecondType>>