UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

16 lines (15 loc) 513 B
import { ExcludeKeys } from './ExcludeKeys'; import { Match } from '../Any/_Internal'; import { Pick } from './Pick'; /** * Exclude the fields of `O1` out of `O` * (If `match = 'default'`, no type checks are done) * @param O to remove from * @param O1 to remove out * @param match (?=`'default'`) to change precision * @returns [[Object]] * @example * ```ts * ``` */ export declare type Exclude<O extends object, O1 extends object, match extends Match = 'default'> = Pick<O, ExcludeKeys<O, O1, match>>;