UNPKG

513 BTypeScriptView Raw
1import { ExcludeKeys } from './ExcludeKeys';
2import { Match } from '../Any/_Internal';
3import { Pick } from './Pick';
4/**
5 * Exclude the fields of `O1` out of `O`
6 * (If `match = 'default'`, no type checks are done)
7 * @param O to remove from
8 * @param O1 to remove out
9 * @param match (?=`'default'`) to change precision
10 * @returns [[Object]]
11 * @example
12 * ```ts
13 * ```
14 */
15export declare type Exclude<O extends object, O1 extends object, match extends Match = 'default'> = Pick<O, ExcludeKeys<O, O1, match>>;