How the TypeScript NonNullable Type Works
The NonNullable type is a utility type in TypeScript which creates a new type, whilst removing all null or 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...
fjolt.hashnode.dev1 min read