We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f6f3b7 commit 53e76b3Copy full SHA for 53e76b3
src/lib/es5.d.ts
@@ -1443,6 +1443,11 @@ type Exclude<T, U> = T extends U ? never : T;
1443
*/
1444
type Extract<T, U> = T extends U ? T : never;
1445
1446
+/**
1447
+ * Construct a type with the properties of T except for those in type K.
1448
+ */
1449
+type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
1450
+
1451
/**
1452
* Exclude null and undefined from T
1453
0 commit comments