UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

21 lines (19 loc) 665 B
import {Diff as ODiff} from '../Object/Diff' import {ListOf} from '../Object/ListOf' import {Match} from '../Any/_Internal' import {ObjectOf} from './ObjectOf' import {List} from './List' /** Get a [[List]] that is the difference between `L` & `L1` (`L`'s differences have priority over `L1`'s if entries overlap) (If `match = 'default'`, no type checks are done) @param L to check differences with @param L1 to check differences against @param match (?=`'default'`) to change precision @returns [[List]] @example ```ts ``` */ export type Diff<L extends List, L1 extends List, match extends Match = 'default'> = ListOf<ODiff<ObjectOf<L>, ObjectOf<L1>, match>>