NonNullable type is a utility type in TypeScript that creates a new type, whilst removing all
undefined elements. It lets us take existing types, and modify them so they are more suitable in certain situations. Let’s look at how it works.
This article covers custom types. To learn more about custom types, read my guide about it here.