From afde9c38107f734626d0b91bc054087435f56370 Mon Sep 17 00:00:00 2001 From: Stephen Jennings Date: Tue, 10 Mar 2020 15:34:48 -0700 Subject: [PATCH] Fix description of Exclude and Extract types These types actually remove types from a union type. The previous description sounds like it removes/includes properties of the given type --- pages/Utility Types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/Utility Types.md b/pages/Utility Types.md index 25f0b3e08..6bedbb951 100644 --- a/pages/Utility Types.md +++ b/pages/Utility Types.md @@ -137,7 +137,7 @@ const todo: TodoPreview = { # `Exclude` -Constructs a type by excluding from `T` all properties that are assignable to `U`. +Constructs a type by excluding from `T` all types that are assignable to `U`. ##### Example @@ -149,7 +149,7 @@ type T2 = Exclude void), Function>; // string | number # `Extract` -Constructs a type by extracting from `T` all properties that are assignable to `U`. +Constructs a type by extracting from `T` all types that are assignable to `U`. ##### Example