UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

13 lines (11 loc) 331 B
import {Exclude} from './Exclude' /** Get an **union** that is the difference between **`U1`** & **`U2`** * @param U1 to check differences with * @param U2 to check differences against * @returns **union** * @example * ```ts * ``` */ export type Diff<U1 extends any, U2 extends any> = Exclude<U1, U2> | Exclude<U2, U1>