UNPKG

457 BTypeScriptView Raw
1import { SelectKeys } from './SelectKeys';
2import { Match } from '../Any/_Internal';
3import { Pick } from './Pick';
4/**
5 * Extract the fields of `O` that match `M`
6 * @param O to extract 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 Select<O extends object, M extends any, match extends Match = 'default'> = Pick<O, SelectKeys<O, M, match>>;