O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mastering TypeScript - Second Edition

Video Description

Write better code with TypeScript’s language features

About This Video

  • Develop a deeper understanding of the TypeScript type system and learn how to use it more effectively in the applications you write
  • Discover the ES6 and ES7 features available today in TypeScript, and learn about experimental language features such as decorators and async/await
  • Improve your TypeScript through examples of a simple food order
  • management system for a pizza restaurant

In Detail

Writing large applications in JavaScript is a challenge. TypeScript brings JavaScript down to earth by providing optional static typing and future JavaScript features today. TypeScript gives the developer instant feedback on the code they are writing in order to catch mistakes earlier in the development process. Since it is transpiled to JavaScript, developers can take advantage of future JavaScript language features today.

This course will take you on a journey through interacting with the type system to working efficiently with more advanced features of the language. It will strengthen your knowledge of TypeScript and help you see the benefits it brings. We use an example-based approach that walks you through a restaurant ordering sample application. In addition, we go one step further by showing you how to automate custom checks on a code base and how to close statically typed gaps.

Table of Contents

  1. Chapter 1 : Getting Started
    1. The Course Overview 00:03:31
    2. Sample Application Overview 00:03:58
    3. Compiling TypeScript in the Sample Application 00:04:29
  2. Chapter 2 : Deploying the Type System
    1. Avoiding the any Type 00:04:52
    2. Implicit or Explicit Types 00:05:57
    3. Being Aware of Structural Typing 00:03:17
    4. Type Composition 00:04:43
    5. object Type 00:02:33
    6. Getting Specific with Literal Types 00:01:21
    7. Mapped Types for Greater Flexibility 00:07:04
    8. never Type 00:03:53
    9. Representing Data Objects 00:04:21
  3. Chapter 3 : Enforcing Strictness
    1. Reducing Mistakes While Being Implicit 00:06:14
    2. Getting Serious with Strict Null Checks 00:05:07
    3. Compiler Options for Added Support 00:02:43
    4. Enforcing Rules and Coding Standards 00:03:58
    5. Verification with Syntax Tree Navigation 00:08:24
  4. Chapter 4 : Moving to ES6 Classes
    1. Introduction: Before Moving 00:04:11
    2. Class-Like Pre-ES6 Patterns to TypeScript 00:05:54
    3. Class-Like Pre-ES6 Patterns to TypeScript (Continued) 00:03:56
    4. Static Class-Like Patterns in TypeScript 00:03:09
    5. Shortening a Class with Parameter Properties 00:02:01
    6. When to Use Arrow Function Properties 00:05:37
  5. Chapter 5 : Interacting with the Type System
    1. Assert and Guard 00:05:07
    2. Making the Most of Type Guarding 00:04:57
    3. Multiple Function Signatures 00:06:03
    4. Rest and Spread 00:02:14
    5. Extending Built-In Types 00:03:52
    6. Code Refactoring 00:03:24
  6. Chapter 6 : Language Features for Code Improvement
    1. Making the Most of let and const 00:05:19
    2. Working with Strings 00:05:45
    3. Enums 00:05:21
    4. Const Enums Versus Enums 00:03:21
    5. Moving to ES6 Modules 00:07:33
    6. Destructuring 00:05:12
  7. Chapter 7 : Representing JavaScript Libraries
    1. Definition Files 00:04:21
    2. Writing a Definition File 00:07:46
    3. Static Typing JavaScript Libraries on the Run 00:05:32
    4. Downloading and Managing Definition Files 00:04:11
    5. Included Definition Files 00:04:09
  8. Chapter 8 : Advanced ES6 and Beyond Features
    1. Introduction to Generators 00:06:21
    2. Improving Performance and Efficiency with Generators 00:03:40
    3. Easier Asynchronous Code with Async/Await 00:03:51
    4. Harnessing the Power of Decorators 00:07:26
    5. Advanced Decorators 00:05:20