File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1416,13 +1416,6 @@ type Pick<T, K extends keyof T> = {
1416
1416
[ P in K ] : T [ P ] ;
1417
1417
} ;
1418
1418
1419
- /**
1420
- * From T, omit a set of properties whose keys are in the union K
1421
- */
1422
- type Rest < T , K extends keyof T > = {
1423
- [ P in Exclude < keyof T , K > ] : T [ P ] ;
1424
- } ;
1425
-
1426
1419
/**
1427
1420
* Construct a type with a set of properties K of type T
1428
1421
*/
@@ -1445,6 +1438,11 @@ type Extract<T, U> = T extends U ? T : never;
1445
1438
*/
1446
1439
type NonNullable < T > = T extends null | undefined ? never : T ;
1447
1440
1441
+ /**
1442
+ * From T, pick all properties except those in the union K
1443
+ */
1444
+ type Rest < T , K extends keyof T > = Pick < T , Exclude < keyof T , K > > ;
1445
+
1448
1446
/**
1449
1447
* Obtain the parameters of a function type in a tuple
1450
1448
*/
You can’t perform that action at this time.
0 commit comments