📝 Better description of Pick mapped type

closes https://github.com/Microsoft/TypeScript/issues/25976
This commit is contained in:
Basarat Ali Syed 2018-10-03 10:57:43 +10:00 committed by GitHub
parent 16766b196c
commit c86b9ca660
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
src/lib/es5.d.ts vendored
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];