Merge pull request #27515 from basarat/master

📝 Better description of Pick mapped type
This commit is contained in:
Ryan Cavanaugh authored and GitHub committed 2018-10-03 09:56:20 -07:00
commit f53a27eac0
1 file changed
+1 -1
+1 -1
View File
@@ -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> = {
[P in K]: T[P];