From 7c213efe4c19b3217371e28878eecd5bcb23fce6 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Fri, 4 Jan 2019 03:34:27 +0100 Subject: [PATCH 1/3] Declare Omit Type --- lib/lib.es5.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/lib.es5.d.ts b/lib/lib.es5.d.ts index d1a9d6f0d2afe..47a534e921692 100644 --- a/lib/lib.es5.d.ts +++ b/lib/lib.es5.d.ts @@ -1448,6 +1448,11 @@ type Record = { */ type Exclude = T extends U ? never : T; +/** + * Omit from T the properties whose keys are in U + */ +type Omit = Pick>; + /** * Extract from T those types that are assignable to U */ From 70bd39823b7bef532e89a2a8113f9f5b7a22da29 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 12 Feb 2019 14:43:24 +0100 Subject: [PATCH 2/3] Update in src --- src/lib/es5.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/es5.d.ts b/src/lib/es5.d.ts index 308af721af625..f03efce6dfe95 100644 --- a/src/lib/es5.d.ts +++ b/src/lib/es5.d.ts @@ -1438,6 +1438,11 @@ type Record = { */ type Exclude = T extends U ? never : T; +/** + * Omit from T the properties whose keys are in U + */ +type Omit = Pick>; + /** * Extract from T those types that are assignable to U */ From 843dd19ccd6eeaad28cda965da9d7da08aa44d2a Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 12 Feb 2019 14:44:05 +0100 Subject: [PATCH 3/3] Remove in lib --- lib/lib.es5.d.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/lib.es5.d.ts b/lib/lib.es5.d.ts index 47a534e921692..d1a9d6f0d2afe 100644 --- a/lib/lib.es5.d.ts +++ b/lib/lib.es5.d.ts @@ -1448,11 +1448,6 @@ type Record = { */ type Exclude = T extends U ? never : T; -/** - * Omit from T the properties whose keys are in U - */ -type Omit = Pick>; - /** * Extract from T those types that are assignable to U */