Home Page Icon
Home Page
Table of Contents for
Learning TypeScript
Close
Learning TypeScript
by
Learning TypeScript
Preface
Who Should Read This Book
Why I Wrote This Book
Navigating This Book
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments
1. From JavaScript to TypeScript
History of JavaScript
Vanilla JavaScript’s Pitfalls
Costly Freedom
Loose Documentation
Weaker Developer Tooling
TypeScript!
TypeScript in Action
Freedom Through Restriction
Precise Documentation
Stronger Developer Tooling
What TypeScript Is Not
Getting Started in the TypeScript Playground
Compiling Syntax
Getting Started Locally
Running Locally
Editor Features
Summary
2. The Type System
What’s in a Type?
Type Inferences in Detail
Kinds of Errors
Assignability
Type Annotations
Unnecessary Type Annotations
Type Shapes
Summary
3. Unions and Narrowing
Union Types
Declaring Union Types
Union Properties
Narrowing
Assignment Narrowing
Conditional Checks
Summary
4. Literals
Literal Types
Literal Assignability
Strict Null Checking
The Billion Dollar Mistake
Truthiness Narrowing
Implicit Union Type Truthiness
Summary
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Learning TypeScript
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset