ts-toolbelt
Version:
TypeScript's largest utility library
18 lines (17 loc) • 498 B
TypeScript
import { CompulsoryKeys as OCompulsoryKeys } from '../Object/CompulsoryKeys';
import { ObjectOf } from './ObjectOf';
import { List } from './List';
/**
* Get the keys of `L` that are [[Compulsory]]
*
* (⚠️ needs `--strictNullChecks` enabled)
* @param L
* @returns [[Key]]
* @example
* ```ts
* import {L} from 'ts-toolbelt'
*
* type test0 = L.CompulsoryKeys<[1, 2, 3]> // {0: 1, 1: 2, 2: 3}
* ```
*/
export declare type CompulsoryKeys<L extends List> = OCompulsoryKeys<ObjectOf<L>>;