mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
📝 Better description of Pick mapped type
closes https://github.com/Microsoft/TypeScript/issues/25976
This commit is contained in:
1 parent
16766b196c
commit
c86b9ca660
1 file changed
+1
-1
Vendored
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user