ts-toolbelt
Version:
TypeScript's largest utility library
19 lines (18 loc) • 715 B
TypeScript
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 declare type Diff<L extends List, L1 extends List, match extends Match = 'default'> = ListOf<ODiff<ObjectOf<L>, ObjectOf<L1>, match>>;