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:
586 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { _Pick as _OPick } from '../Object/Pick';
|
---|
| 2 | import { _ListOf } from '../Object/ListOf';
|
---|
| 3 | import { Key } from './_Internal';
|
---|
| 4 | import { ObjectOf } from './ObjectOf';
|
---|
| 5 | import { List } from './List';
|
---|
| 6 | /**
|
---|
| 7 | * @hidden
|
---|
| 8 | */
|
---|
| 9 | export declare type _Pick<L extends List, K extends Key> = _ListOf<_OPick<ObjectOf<L>, `${K & number}` | K>>;
|
---|
| 10 | /**
|
---|
| 11 | * Extract out of `L` the entries of key `K`
|
---|
| 12 | * @param L to extract from
|
---|
| 13 | * @param K to chose entries
|
---|
| 14 | * @returns [[List]]
|
---|
| 15 | * @example
|
---|
| 16 | * ```ts
|
---|
| 17 | * ```
|
---|
| 18 | */
|
---|
| 19 | export declare type Pick<L extends List, K extends Key> = L extends unknown ? _Pick<L, K> : never;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.