Mastering TypeScript – Second Edition

Mastering TypeScript – Second Edition

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 31m | 825 MB

Write better code with TypeScript’s language features

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.

An advanced guide for TypeScript filled with example-based walkthroughs and best practices.

What You Will Learn

  • Compile the sample application and analyze its overall structure
  • Understand TypeScript’s type system and how to use it more effectively
  • Utilize the information from static types to enforce strictness and reduce mistakes
  • Broaden your knowledge of ES6 classes and how they relate to class-like pre-ES6 patterns
  • Interact efficiently with the type system for better structured code
  • Familiarize yourself with using JavaScript libraries in TypeScript
  • Improve your code with TypeScript language features
  • Use advanced experimental ES6, ES7, and ES8 features
Table of Contents

01 The Course Overview
02 Sample Application Overview
03 Compiling TypeScript in the Sample Application
04 Avoiding the any Type
05 Implicit or Explicit Types
06 Being Aware of Structural Typing
07 Type Composition
08 object Type
09 Getting Specific with Literal Types
10 Mapped Types for Greater Flexibility
11 never Type
12 Representing Data Objects
13 Reducing Mistakes While Being Implicit
14 Getting Serious with Strict Null Checks
15 Compiler Options for Added Support
16 Enforcing Rules and Coding Standards
17 Verification with Syntax Tree Navigation
18 Introduction – Before Moving
19 Class-Like Pre-ES6 Patterns to TypeScript
20 Class-Like Pre-ES6 Patterns to TypeScript (Continued)
21 Static Class-Like Patterns in TypeScript
22 Shortening a Class with Parameter Properties
23 When to Use Arrow Function Properties
24 Assert and Guard
25 Making the Most of Type Guarding
26 Multiple Function Signatures
27 Rest and Spread
28 Extending Built-In Types
29 Code Refactoring
30 Making the Most of let and const
31 Working with Strings
32 Enums
33 Const Enums Versus Enums
34 Moving to ES6 Modules
35 Destructuring
36 Definition Files
37 Writing a Definition File
38 Static Typing JavaScript Libraries on the Run
39 Downloading and Managing Definition Files
40 Included Definition Files
41 Introduction to Generators
42 Improving Performance and Efficiency with Generators
43 Easier Asynchronous Code with Async_Await
44 Harnessing the Power of Decorators
45 Advanced Decorators