December 2019
Intermediate to advanced
598 pages
12h 21m
English
TypeScript adds an optional static typing layer on top of JavaScript that we can use during our development. Static types allow us to catch certain problems earlier in the development process. For example, if we make a mistake when referencing a variable, TypeScript will spot this immediately after we've mistyped the variable, as shown in the following screenshot:

Another example is that, if we forget to pass a required attribute when referencing a React component, TypeScript informs us of the mistake straight away:
This means we get a build-time error rather than a runtime error.
This also helps tools ...
Read now
Unlock full access