Exclude

This lesson explains the exclude mapped type.

We'll cover the following

Exclude vs Extract

The Exclude mapped type is similar to Extract in the sense that it builds a type by selecting several properties. However, contrary to Extract, Exclude takes all the properties from a type and removes the specified one, instead of starting from nothing and adding the specified properties.

The following code snippet produces the exact same code as the one created in the previous lesson with Extract.

Get hands-on with 1200+ tech skills courses.