Practical Advanced TypeScript

0
Level

Advanced

Language

Access

Free

Certificate

Free

Learn advanced TypeScript features to improve readability and type strictness. Explore numeric separators, strict property initialization, type guards, mapped type modifiers, conditional types, and decorators. Enhance your projects with practical examples and gain valuable skills.

Add your review

This course explores some of the new advanced TypeScript features, using practical examples you might encounter in your projects.

We’ll start off by demonstrating two new features that improve readability (numeric separators) and tighten type strictness in classes (strict property initialization). We’ll then improve type guards with a practical Redux-inspired example, followed by a lesson about writing more readable mapped type modifiers. We’ll use a summary on types vs. interfaces to transition to self-referencing types examples (and how to build custom type safe iterators around them). We’ll then cover a few ways to use the new conditional types, including building a recursive generic type that transforms any other type you pass into it, regardless of how deep it is, and makes it read-only — great for your immutable states!

Finally, we’ll end with a lesson on building and chaining decorators to initialize and augment properties in classes.

Course Content

Course Overview: Practical Advanced TypeScript Features

Improve Readability with TypeScript Numeric Separators when working with Large Numbers

Make TypeScript Class Usage Safer with Strict Property Initialization

Use the JavaScript “in” operator for automatic type inference in TypeScript

Automatically infer TypeScript types in switch statements

Create Explicit and Readable Type Declarations with TypeScript mapped Type Modifiers

Use Types vs. Interfaces

Build self-referencing type aliases in TypeScript

Simplify iteration of custom data structures in TypeScript with iterators

Use the TypeScript “unknown” type to avoid runtime errors

Dynamically Allocate Function Types with Conditional Types in TypeScript

Use TypeScript conditional types to create a reusable Flatten type

Infer the Return Type of a Generic Function Type Parameter

Deeply mark all the properties of a type as read-only in TypeScript

Dynamically initialize class properties using TypeScript decorators

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Practical Advanced TypeScript”

×

    Your Email (required)

    Report this page
    Practical Advanced TypeScript
    Practical Advanced TypeScript
    LiveTalent.org
    Logo
    LiveTalent.org
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.