Advanced Static Types in TypeScript

0
Level

Advanced

Language

Access

Free

Certificate

Free

Learn how to write safer code with TypeScript’s advanced static types. Explore non-nullable types, control flow analysis, and type guards. Discover string enums, literal types, discriminated unions, and rest/spread operators. Also, understand dynamic property access and transformation functions. Enhance your TypeScript skills with this comprehensive course.

Add your review

This course explores the capabilities of TypeScript’s type system and shows how to use advanced static types in practice. For example, you’ll learn how to write safer code by using non-nullable types and being explicit about

and

in the type system.

You’ll also see how the compiler analyzes control flow to determine the most specific type for a variable at any given location.

In addition to that, you’ll learn about the

modifier and the special

and

types. This course also inspects string enums, literal types, discriminated unions, and static types for the rest and spread operators.

Finally, you’ll see how to type dynamic property access using the

operator and how to create new types by applying transformation functions to existing ones.

Course Content

Restrict null and undefined via Non-Nullable-Types in TypeScript

Understand TypeScript’s Control Flow Based Type Analysis

Define Custom Type Guard Functions in TypeScript

Make Properties and Index Signatures Readonly in TypeScript

Represent Non-Primitive Types with TypeScript’s object Type

Use TypeScript’s never Type for Exhaustiveness Checking

Overload a Function with TypeScript’s Overload Signatures

Collect Related Strings in a String Enum in TypeScript

Specify Exact Values with TypeScript’s Literal Types

Model Alternatives with Discriminated Union Types in TypeScript

Infer Types for Rest and Spread Properties in TypeScript

Query Properties with keyof and Lookup Types in TypeScript

Transform Existing Types Using Mapped Types in TypeScript

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 “Advanced Static Types in TypeScript”

×

    Your Email (required)

    Report this page
    Advanced Static Types in TypeScript
    Advanced Static Types in 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.