basarat / typescript-book

:books: The definitive guide to TypeScript and possibly the best TypeScript book :book:. Free and Open Source 🌹
https://basarat.gitbook.io/typescript/
Other
20.71k stars 2.54k forks source link

Strict Null Checking : Nullable Types #80

Open basarat opened 8 years ago

basarat commented 8 years ago

https://github.com/Microsoft/TypeScript/pull/7140

Nullable types are just syntactic sugar for union types that include type of null/undefined.

basarat commented 8 years ago

Nullable vs. Optional. They are distinct concepts :rose: