Merge pull request #27515 from basarat/master
📝 Better description of Pick mapped type
This commit is contained in:
commit
f53a27eac0
1 changed files with 1 additions and 1 deletions
2
src/lib/es5.d.ts
vendored
2
src/lib/es5.d.ts
vendored
|
@ -1410,7 +1410,7 @@ type Readonly<T> = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* From T pick a set of properties K
|
* From T, pick a set of properties whose keys are in the union K
|
||||||
*/
|
*/
|
||||||
type Pick<T, K extends keyof T> = {
|
type Pick<T, K extends keyof T> = {
|
||||||
[P in K]: T[P];
|
[P in K]: T[P];
|
||||||
|
|
Loading…
Reference in a new issue