UNPKG

498 BTypeScriptView Raw
1import { CompulsoryKeys as OCompulsoryKeys } from '../Object/CompulsoryKeys';
2import { ObjectOf } from './ObjectOf';
3import { List } from './List';
4/**
5 * Get the keys of `L` that are [[Compulsory]]
6 *
7 * (⚠️ needs `--strictNullChecks` enabled)
8 * @param L
9 * @returns [[Key]]
10 * @example
11 * ```ts
12 * import {L} from 'ts-toolbelt'
13 *
14 * type test0 = L.CompulsoryKeys<[1, 2, 3]> // {0: 1, 1: 2, 2: 3}
15 * ```
16 */
17export declare type CompulsoryKeys<L extends List> = OCompulsoryKeys<ObjectOf<L>>;