main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
457 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { SelectKeys } from './SelectKeys';
|
---|
| 2 | import { Match } from '../Any/_Internal';
|
---|
| 3 | import { 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 | */
|
---|
| 14 | export declare type Select<O extends object, M extends any, match extends Match = 'default'> = Pick<O, SelectKeys<O, M, match>>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.