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:
498 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { CompulsoryKeys as OCompulsoryKeys } from '../Object/CompulsoryKeys';
|
---|
| 2 | import { ObjectOf } from './ObjectOf';
|
---|
| 3 | import { 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 | */
|
---|
| 17 | export declare type CompulsoryKeys<L extends List> = OCompulsoryKeys<ObjectOf<L>>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.