rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
15 lines (13 loc) • 338 B
text/typescript
import {Exclude} from './Exclude'
import {Union} from './Union'
/**
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 Union, U2 extends Union> =
Exclude<U1, U2> | Exclude<U2, U1>