UNPKG

459 BTypeScriptView Raw
1import { FilterKeys } from './FilterKeys';
2import { Match } from '../Any/_Internal';
3import { Pick } from './Pick';
4/**
5 * Filter out of `O` the fields that match `M`
6 * @param O to remove from
7 * @param M to select fields
8 * @param match (?=`'default'`) to change precision
9 * @returns [[Object]]
10 * @example
11 * ```ts
12 * ```
13 */
14export declare type Filter<O extends object, M extends any, match extends Match = 'default'> = Pick<O, FilterKeys<O, M, match>>;