UNPKG

715 BTypeScriptView Raw
1import { Diff as ODiff } from '../Object/Diff';
2import { ListOf } from '../Object/ListOf';
3import { Match } from '../Any/_Internal';
4import { ObjectOf } from './ObjectOf';
5import { List } from './List';
6/**
7 * Get a [[List]] that is the difference between `L` & `L1`
8 * (`L`'s differences have priority over `L1`'s if entries overlap)
9 * (If `match = 'default'`, no type checks are done)
10 * @param L to check differences with
11 * @param L1 to check differences against
12 * @param match (?=`'default'`) to change precision
13 * @returns [[List]]
14 * @example
15 * ```ts
16 * ```
17 */
18export declare type Diff<L extends List, L1 extends List, match extends Match = 'default'> = ListOf<ODiff<ObjectOf<L>, ObjectOf<L1>, match>>;