source: node_modules/ts-toolbelt/out/Object/SelectKeys.d.ts

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: 642 bytes
Line 
1import { Match } from '../Any/_Internal';
2import { Is } from '../Any/Is';
3/**
4 * @hidden
5 */
6export declare type _SelectKeys<O extends object, M extends any, match extends Match> = {
7 [K in keyof O]-?: {
8 1: K;
9 0: never;
10 }[Is<O[K], M, match>];
11}[keyof O];
12/**
13 * Get the keys of `O` which fields match `M`
14 * @param O to extract from
15 * @param M to select fields
16 * @param match (?=`'default'`) to change precision
17 * @returns [[Key]]
18 * @example
19 * ```ts
20 * ```
21 */
22export declare type SelectKeys<O extends object, M extends any, match extends Match = 'default'> = O extends unknown ? _SelectKeys<O, M, match> : never;
Note: See TracBrowser for help on using the repository browser.