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

Video Description

Explore TypeScript in depth with detailed examples and put it all into practice by building a project

About This Video

  • Discover ES6 and ES7 features available today in TypeScript and learn about the experimental language features TypeScript offers

  • Master your TypeScript skills by building an illustrative restaurant order application

  • Utilize static typing between client and server applications and understand the benefits static typing can offer.

  • 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.

    Mastering TypeScript will take you on a journey from understanding and interacting with the type system to working efficiently with more advanced features of the language.c

    We’ll start by introducing a simple client/server application. Then use the application to demonstrate key components of the TypeScript language.

    Once the sample application is set up, we’ll look in detail at TypeScript’s type system. Then we take a look at more advanced language features, learn to deal with JavaScript libraries, and finally use TypeScript to utilize static typing between parts of an application.

    Mastering TypeScript will help you write better TypeScript code and gain a deeper understanding of the language.

    Table of Contents

    1. Chapter 1 : Getting Started
      1. The Course Overview 00:03:24
      2. Sample Application Overview 00:04:13
      3. Compiling TypeScript in the Sample Application 00:04:32
    2. Chapter 2 : Deploying the Type System
      1. Implicit or Explicit Types 00:06:54
      2. Avoiding the "any" Type 00:03:37
      3. Being Aware of Structural Typing 00:02:42
      4. Type System Troubles 00:04:07
      5. Compiler Options for Added Support 00:02:23
      6. Enforcing Rules and Coding Standards 00:04:23
    3. Chapter 3 : Moving to ES6 Classes
      1. Introduction – Before Moving 00:03:55
      2. Class-like JavaScript Patterns to TypeScript (Part 1) 00:05:53
      3. Class-like JavaScript Patterns to TypeScript (Part 2) 00:04:24
      4. Static Class-like Patterns in TypeScript 00:03:17
      5. Shortening a Class with Parameter Properties 00:01:40
      6. When to Use Arrow Function Properties 00:06:02
    4. Chpater 4 : Interacting with the Type System
      1. Assert and Guard 00:05:24
      2. Making the Most of Type Guarding 00:05:05
      3. Multiple Function Signatures 00:06:04
      4. Rest and Spread 00:02:19
      5. Extending Built-in Types 00:04:01
      6. Code Refactoring 00:03:22
    5. Chapter 5 : Representing JavaScript Libraries
      1. Definition Files 00:04:35
      2. Writing a Definition File 00:07:46
      3. Strong Typing JavaScript Libraries on the Run 00:05:24
      4. Downloading and Managing Definition Files 00:05:44
      5. Included Definition Files 00:04:17
    6. Chapter 6 : Language Features for Code Improvement
      1. Making the Most of let and const 00:05:19
      2. Working with Strings 00:06:01
      3. enums 00:05:21
      4. const enums Versus enums 00:03:23
      5. Moving to ES6 Modules 00:07:46
      6. Destructuring 00:05:13
    7. Chapter 7 : Advanced ES6 and ES7 Features
      1. Introduction to Generators 00:06:28
      2. Improving Performance and Efficiency with Generators 00:03:59
      3. Easier Asynchronous Code with async/await 00:03:54
      4. Harnessing the Power of Decorators 00:07:37
      5. Advanced Decorators 00:03:35
    8. Chapter 8 : Bridging Statically Typed Gaps
      1. Sharing Code Across Applications 00:05:23
      2. Bridging with Interfaces 00:05:48
      3. Bridging with Code Generation 00:03:24
      4. Using TSX Files 00:05:11