UNPKG

@cuppachino/type-space

Version:

A collection of type utilities for TypeScript.

6 lines (5 loc) 224 B
import type { Combine } from './combine'; /** * Merge two types into a new type. If a key exists in both types, the SECOND type's value will be used. */ export type ShallowMergeRight<A, B> = Combine<Omit<A, keyof B> & B>;