Zum Hauptinhalt springen
Academind
Alle Kurse

Academind-Pro-Kurs

Understanding TypeScript

Get started with TypeScript and take a deep dive into all its basic, advanced and important niche features. From the ground up, step by step!

  • 21 Abschnitte · 255 Lektionen
  • 17 Std., 17 Min. insgesamt

Über diesen Kurs

You can write JavaScript that works — but you’re tired of finding out about mistakes only after you run the code. Autocomplete feels unreliable, refactors feel risky, and “it should be fine” keeps turning into debugging sessions.

In this course, you’ll add TypeScript to the way you already build with JavaScript, so you can catch problems earlier and make your code easier to change. You’ll see how TypeScript works under the hood, then apply it in realistic scenarios — with exercises (and solutions) to make the ideas stick.

By the end, you’ll be able to introduce TypeScript into your own projects with confidence: set up a workflow that fits your stack, write code that’s safer to evolve, and use TypeScript effectively whether you’re working in a React app or a Node / Express codebase.

Was du lernst

You’ll go from understanding how the TypeScript compiler thinks to using advanced type features and integrating TypeScript into React and Node / Express workflows.

  1. 01

    Type-safe JavaScript code

    Use TypeScript’s type system to write code that prevents common runtime errors, including choosing the right built-in types and creating your own types for real project needs.

  2. 02

    Compiler & config control

    Understand how the TypeScript compiler works and configure it to match your project goals, so you can control how code is checked and how it’s prepared for execution.

  3. 03

    Modern JS with TypeScript

    Apply ES6 features like destructuring, arrow functions, and classes through TypeScript so you can use modern patterns even when the target environment doesn’t support them natively.

  4. 04

    Advanced type techniques

    Use powerful features like infer, mapped types, constant types with as const, and satisfies to model complex data and APIs without losing readability or safety.

  5. 05

    Architecture with TS constructs

    Build maintainable structures with classes, interfaces, namespaces, modules, generics, and derived types, choosing the right tool for reusable code and clear contracts.

  6. 06

    TypeScript across stacks

    Combine TypeScript with ReactJS and with NodeJS / Express (including native Node.js TypeScript support) so you can keep strong typing from UI components to server logic.

Voraussetzungen

  • JavaScript knowledge is required, but you don’t need to be an expert.

  • No prior TypeScript experience is required.

  • ES6 knowledge is helpful, but not required.

Für wen dieser Kurs ist

  • JavaScript developers

    You already build with vanilla JavaScript and want fewer surprises when code runs. This course is your next step to make everyday development and refactoring feel safer.

  • Angular learners

    You’re learning Angular and keep hearing “TypeScript is required,” but the language itself feels like a black box. This course helps you understand what TypeScript is doing so Angular code makes more sense.

  • Stack-flexible builders

    You switch between front end and back end and don’t want separate “typing strategies” for each. This course is for you if you want one TypeScript foundation that carries into React and Node / Express work.

Lehrplan

Sieh dir Aufbau und Tempo dieses Kurses an, bevor du startest.

  1. 1Getting Started10 Lektionen · 24 Min.
    1. 01Welcome to the Course1:31 Min.
    2. 02What Is TypeScript?2:54 Min.
    3. 03Why Would You Use TypeScript?5:32 Min.
    4. 04Compiling TypeScript To JavaScript6:18 Min.
    5. 05Editor & Project Setup2:11 Min.
    6. 06Course Setup0:00 Min.
    7. 07About The Course1:40 Min.
    8. 08The Academind Pro Referral Program0:00 Min.
    9. 09How To Get The Most Out Of This Course3:29 Min.
    10. 10Join Our Learning Community0:00 Min.
  2. 2TypeScript Basics & Basic Types31 Lektionen · 1 Std., 46 Min.
    1. 01Module Introduction1:12 Min.
    2. 02Project Setup2:56 Min.
    3. 03Working with Types & Exploring Built-in Types4:44 Min.
    4. 04Vanilla JavaScript Has Types, Too!2:53 Min.
    5. 05Type Inference vs Type Assignment2:59 Min.
    6. 06Assigning Types To Function Parameters2:45 Min.
    7. 07The "any" Type3:02 Min.
    8. 08Understanding Union Types2:02 Min.
    9. 09Arrays & Types2:28 Min.
    10. 10Advanced Array Types1:56 Min.
    11. 11A First Glimpse At Generic Types - Alternative Array Type Declaration1:46 Min.
    12. 12Making Sense of Tuples3:15 Min.
    13. 13Object Types4:48 Min.
    14. 14Tricky: The "Must Not Be Null" Type2:25 Min.
    15. 15Flexible Objects with the Record Type4:55 Min.
    16. 16Working with Enums6:39 Min.
    17. 17Being Specific With Literal Types5:04 Min.
    18. 18Type Aliases & Custom Types4:13 Min.
    19. 19Quiz: Core Types & Concepts0:00 Min.
    20. 20Function Return Value Types3:04 Min.
    21. 21The "void" Type1:28 Min.
    22. 22The "never" Type3:16 Min.
    23. 23Functions As Types8:36 Min.
    24. 24Quiz: Functions & Types0:00 Min.
    25. 25null & undefined - Special Types2:40 Min.
    26. 26Inferred null & A First Look At Type Narrowing3:29 Min.
    27. 27Forced "Not Null" And Optional Chaining5:20 Min.
    28. 28Type Casting4:26 Min.
    29. 29The "unknown" Type5:22 Min.
    30. 30Optional Values & TypeScript2:41 Min.
    31. 31Nullish Coalescing5:36 Min.
  3. 3The TypeScript Compiler (and its Configuration)10 Lektionen · 26 Min.
    1. 01Module Introduction1:26 Min.
    2. 02TypeScript Project Setup & Creating a tsconfig.json File2:46 Min.
    3. 03Exploring tsconfig Options: Target & Libs5:31 Min.
    4. 04Controlling File Input & Emission5:16 Min.
    5. 05Configuring Type Checking3:16 Min.
    6. 06Example tsconfig.json & Deep Dive0:00 Min.
    7. 07Configuring Code Quality Checks0:00 Min.
    8. 08Compiling with tsconfig1:28 Min.
    9. 09Using TypeScript's Watch Mode1:01 Min.
    10. 10Installing Type Packages5:36 Min.
  4. 4TypeScript Essentials Demo Project7 Lektionen · 31 Min.
    1. 01Module Introduction1:24 Min.
    2. 02Getting Started & First Steps4:42 Min.
    3. 03Creating a First Custom Type4:03 Min.
    4. 04Defining a Function with a Union Type Return Value3:33 Min.
    5. 05Adding Application Logic9:57 Min.
    6. 06Connecting Functions & Passing Values3:52 Min.
    7. 07Compilation & Execution3:33 Min.
  5. 5Next-generation JavaScript & TypeScript9 Lektionen · 34 Min.
    1. 01Module Introduction3:39 Min.
    2. 02"let" and "const"6:35 Min.
    3. 03Arrow Functions4:50 Min.
    4. 04Default Function Parameters2:09 Min.
    5. 05The Spread Operator (...)4:32 Min.
    6. 06Rest Parameters5:04 Min.
    7. 07Array & Object Destructuring5:17 Min.
    8. 08How Code Gets Compiled & Wrap Up1:37 Min.
    9. 09Useful Resources & Links0:00 Min.
  6. 6Classes & Interfaces21 Lektionen · 1 Std., 2 Min.
    1. 01Module Introduction1:02 Min.
    2. 02What are Classes?1:23 Min.
    3. 03Creating a First Class6:04 Min.
    4. 04A Useful TypeScript Shortcut & Compiling to JavaScript5:18 Min.
    5. 05Making Sense of "public" and "private"5:47 Min.
    6. 06Marking Fields as "readonly"1:53 Min.
    7. 07Understanding Getters3:31 Min.
    8. 08Setting Values with Setters5:06 Min.
    9. 09Exploring Static Properties & Methods2:30 Min.
    10. 10Understanding Inheritance3:23 Min.
    11. 11The "protected" Modifier2:33 Min.
    12. 12Making Sense Of Abstract Classes4:25 Min.
    13. 13Introducing Interfaces1:38 Min.
    14. 14Creating a First Interface3:57 Min.
    15. 15Interfaces As Object Types1:43 Min.
    16. 16Interfaces vs Type Aliases & Understanding Declaration Merging4:03 Min.
    17. 17Using Interfaces To Define Function Types0:00 Min.
    18. 18Implementing Interfaces3:10 Min.
    19. 19Ensuring Base Types with Interfaces1:52 Min.
    20. 20Extending Interfaces1:54 Min.
    21. 21How Interfaces Get (Not) Compiled To JavaScript1:00 Min.
  7. 7Advanced Types13 Lektionen · 46 Min.
    1. 01Module Introduction0:48 Min.
    2. 02Introducing Intersection Types4:36 Min.
    3. 03Revisiting Type Guards5:30 Min.
    4. 04Exploring Discriminated Unions4:33 Min.
    5. 05Guards with "instanceof"2:37 Min.
    6. 06"Outsourcing" Type Guards & Working with Type Predicates3:14 Min.
    7. 07The Case For Function Overloads4:39 Min.
    8. 08Rest Parameters & Types0:00 Min.
    9. 09Using Function Overloads2:31 Min.
    10. 10Working with Index Types5:02 Min.
    11. 11Constant Types with "as const"2:52 Min.
    12. 12Revisiting the Record Type1:45 Min.
    13. 13The "satisfies" Keyword7:49 Min.
  8. 8Generic Types10 Lektionen · 28 Min.
    1. 01Module Introduction0:49 Min.
    2. 02A Generic Type We Already Know1:56 Min.
    3. 03Understanding Generic Types2:01 Min.
    4. 04Creating & Using a Generic Type6:16 Min.
    5. 05Generic Functions & Inference5:09 Min.
    6. 06Working with Multiple Generic Parameters2:00 Min.
    7. 07Generics & Constraints4:03 Min.
    8. 08Constraints & Multiple Generic Types2:42 Min.
    9. 09Working with Generic Classes & Interfaces2:06 Min.
    10. 10Summary1:03 Min.
  9. 9Classes & Generics - Demo Project8 Lektionen · 26 Min.
    1. 01Module Introduction0:49 Min.
    2. 02What Is A Linked List?1:35 Min.
    3. 03Creating List & Node Classes4:49 Min.
    4. 04Making the Class Generic3:11 Min.
    5. 05Adding an "add" Method6:45 Min.
    6. 06Adding Items More Efficiently3:07 Min.
    7. 07Accessing the Data & Compiling + Running the Code3:59 Min.
    8. 08Finishing the Linked List1:54 Min.
  10. 10Deriving Types From Types15 Lektionen · 1 Std., 18 Min.
    1. 01Module Introduction0:48 Min.
    2. 02Using "typeof"4:47 Min.
    3. 03Another Great Use-case for "typeof"0:00 Min.
    4. 04"typeof" & A More Useful Example4:06 Min.
    5. 05Extracting Keys with "keyof"2:22 Min.
    6. 06"keyof" & A More Useful Example6:26 Min.
    7. 07Understanding Indexed Access Types4:35 Min.
    8. 08Accessing Array Elements with Indexed Access Types3:54 Min.
    9. 09Introducing Mapped Types7:52 Min.
    10. 10Readonly Types & Optional Mapping7:22 Min.
    11. 11Exploring Template Literal Types10:13 Min.
    12. 12Introducing Conditional Types9:26 Min.
    13. 13Conditional Types - Another Example6:04 Min.
    14. 14Making Sense of the "infer" Keyword7:28 Min.
    15. 15TypeScript's Got You Covered: Built-in Utility Types2:57 Min.
  11. 11Decorators13 Lektionen · 51 Min.
    1. 01Module Introduction0:51 Min.
    2. 02What Are Decorators? And ECMAScript Decorators vs Experimental Decorators7:09 Min.
    3. 03Exploring Different Types of Decorators1:17 Min.
    4. 04Building a First Decorator8:09 Min.
    5. 05Building a Class Decorators That Edits a Class5:25 Min.
    6. 06Understanding Decorator Code Execution Order3:07 Min.
    7. 07Creating a Method Decorator4:17 Min.
    8. 08Using Decorators To Solve A Common Problem4:09 Min.
    9. 09Implementing A Decorator-based Solution: autobind3:44 Min.
    10. 10Replacing Methods with Decorators3:38 Min.
    11. 11Introducing the Field Decorator4:43 Min.
    12. 12Building Configurable Decorators with Factories4:01 Min.
    13. 13Onwards to Experimental Decorators0:40 Min.
  12. 12Experimental Decorators16 Lektionen · 1 Std., 16 Min.
    1. 01Module Introduction1:55 Min.
    2. 02A First Class Decorator5:21 Min.
    3. 03Working with Decorator Factories2:02 Min.
    4. 04Building More Useful Decorators5:59 Min.
    5. 05Adding Multiple Decorators2:52 Min.
    6. 06Diving into Property Decorators5:00 Min.
    7. 07Accessor & Parameter Decorators5:36 Min.
    8. 08When Do Decorators Execute?3:11 Min.
    9. 09Returning (and changing) a Class in a Class Decorator8:37 Min.
    10. 10Other Decorator Return Types3:44 Min.
    11. 11Example: Creating an "Autobind" Decorator9:04 Min.
    12. 12Validation with Decorators - First Steps7:28 Min.
    13. 13Validation with Decorators - Finished12:14 Min.
    14. 14Wrap Up3:21 Min.
    15. 15Fixing a Bug0:00 Min.
    16. 16Useful Resources & Links0:00 Min.
  13. 13Practice Time! Let's build a Drag & Drop Project20 Lektionen · 2 Std., 42 Min.
    1. 01Module Introduction1:32 Min.
    2. 02Getting Started5:20 Min.
    3. 03DOM Element Selection & OOP Rendering11:43 Min.
    4. 04Interacting with DOM Elements8:03 Min.
    5. 05Creating & Using an "Autobind" Decorator4:44 Min.
    6. 06Fetching User Input9:14 Min.
    7. 07Creating a Re-Usable Validation Functionality14:10 Min.
    8. 08Rendering Project Lists11:18 Min.
    9. 09Managing Application State with Singletons15:32 Min.
    10. 10More Classes & Custom Types7:11 Min.
    11. 11Filtering Projects with Enums5:59 Min.
    12. 12Adding Inheritance & Generics18:40 Min.
    13. 13Rendering Project Items with a Class11:58 Min.
    14. 14Using a Getter3:33 Min.
    15. 15Utilizing Interfaces to Implement Drag & Drop10:24 Min.
    16. 16Drag Events & Reflecting the Current State in the UI5:58 Min.
    17. 17Adding a Droppable Area8:08 Min.
    18. 18Finishing Drag & Drop6:44 Min.
    19. 19Wrap Up1:22 Min.
    20. 20Useful Resources & Links0:00 Min.
  14. 14Modules & Namespaces11 Lektionen · 51 Min.
    1. 01Module Introduction1:24 Min.
    2. 02Writing Module Code - Your Options2:34 Min.
    3. 03Working with Namespaces10:50 Min.
    4. 04Organizing Files & Folders8:41 Min.
    5. 05A Problem with Namespace Imports2:52 Min.
    6. 06Using ES Modules12:20 Min.
    7. 07Understanding various Import & Export Syntaxes4:57 Min.
    8. 08How Does Code In Modules Execute?1:43 Min.
    9. 09Understanding "type" Imports2:16 Min.
    10. 10Wrap Up3:14 Min.
    11. 11Useful Resources & Links0:00 Min.
  15. 15Creating & Running TypeScript Projects with Vite9 Lektionen · 26 Min.
    1. 01Module Introduction1:14 Min.
    2. 02The Problem With The TypeScript Compiler3:35 Min.
    3. 03Building with Webpack or ESBuild4:13 Min.
    4. 04Introducing Vite2:25 Min.
    5. 05Using Vite7:21 Min.
    6. 06Installing TypeScript on a Per-Project Basis1:49 Min.
    7. 07Making Sense of .d.ts Files2:33 Min.
    8. 08Importing non-TS Files1:56 Min.
    9. 09Wrap Up0:46 Min.
  16. 16Using Webpack with TypeScript10 Lektionen · 33 Min.
    1. 01About This Section0:00 Min.
    2. 02Module Introduction1:01 Min.
    3. 03What is Webpack & Why do we need it?5:32 Min.
    4. 04Installing Webpack & Important Dependencies3:55 Min.
    5. 05Adding Entry & Output Configuration5:57 Min.
    6. 06Adding TypeScript Support with the ts-loader Package7:00 Min.
    7. 07Finishing the Setup & Adding webpack-dev-server3:33 Min.
    8. 08Adding a Production Workflow4:04 Min.
    9. 09Wrap Up1:40 Min.
    10. 10Useful Resources & Links0:00 Min.
  17. 173rd Party Libraries & TypeScript10 Lektionen · 35 Min.
    1. 01Module Introduction1:09 Min.
    2. 02Facing Problems with JS Libraries in TS Projects3:43 Min.
    3. 03Bridging the Gap with @types Packages4:40 Min.
    4. 04Exploring .d.ts Files6:43 Min.
    5. 05Using "declare" Manually0:00 Min.
    6. 06Diving Deeper Into .d.ts Files0:00 Min.
    7. 07There Are Libraries With Great TypeScript Support!2:21 Min.
    8. 08Exploring Zod as a TypeScript-first Library8:02 Min.
    9. 09Defining a More Complex Zod Schema4:25 Min.
    10. 10Runtime vs Compile-time Types with Zod4:16 Min.
  18. 18Time to Practice! Let's build a "Select & Share a Place" App (incl. Google Maps)7 Lektionen · 27 Min.
    1. 01Module Introduction0:41 Min.
    2. 02Project Setup3:56 Min.
    3. 03Getting User Input2:41 Min.
    4. 04Setting Up a Google API Key2:48 Min.
    5. 05Using Axios to Fetch Coordinates for an Entered Address10:14 Min.
    6. 06Rendering a Map with Google Maps (incl. Types!)6:35 Min.
    7. 07Useful Resources & Links0:00 Min.
  19. 19React.js & TypeScript13 Lektionen · 47 Min.
    1. 01Module Introduction1:22 Min.
    2. 02Creating a React + TypeScript Project4:08 Min.
    3. 03Typing Components & Props5:47 Min.
    4. 04Using Components & Props2:47 Min.
    5. 05TypeScript, The Special "children" Prop & Optional Props3:01 Min.
    6. 06Adding Another Component With Props4:03 Min.
    7. 07An Alternative Component Function Type Syntax2:30 Min.
    8. 08Working with State & TypeScript2:05 Min.
    9. 09Passing Functions As Props5:15 Min.
    10. 10Handling Form Submission4:43 Min.
    11. 11Using Refs with TypeScript5:40 Min.
    12. 12More Function Passing & State Updating4:05 Min.
    13. 13Wrap Up1:06 Min.
  20. 20Node.js & TypeScript11 Lektionen · 1 Std., 7 Min.
    1. 01Module Introduction0:55 Min.
    2. 02Node + TypeScript - You Have Multiple Options3:52 Min.
    3. 03Project Setup & Configuration7:23 Min.
    4. 04Adding Node.js Types & Running a Basic Server3:28 Min.
    5. 05Adding & Using Express.js (and its Types)3:27 Min.
    6. 06Managing Data With Help Of TypeScript8:28 Min.
    7. 07Adding & Testing a First Route (with Data Extraction)9:38 Min.
    8. 08Finishing the Basic App11:39 Min.
    9. 09Native Node.js TypeScript Support Without Compilation (incl. tsconfig Setup)7:28 Min.
    10. 10Type Stripping vs Type Transformation9:01 Min.
    11. 11Considering Alternative Runtimes1:44 Min.
  21. 21Course Roundup1 Lektion · 1 Min.
    1. 01Roundup & Next Steps1:15 Min.

Bereit loszulegen?

Kaufe diesen Kurs auf Academind Pro oder hol dir mit All Access auf Academind Infinite alle Kurse.

Black Friday: ein Jahr All Access für 249 $ 249 $ · nur bis Angebot sichern
  • Dieser Kurs auf Academind Pro

    89 $einmalig

    Inkl. MwSt. · 30 Tage Geld-zurück-Garantie

    • Lebenslanger Zugriff auf diesen Kurs
    • Alle künftigen Updates dieses Kurses
    • Downloads, Code und ein Zertifikat
    TypeScript kaufen
  • All Access auf Academind Infinite

    25 $im Monat

    oder 249 $ 249 $ im JahrSpare 17 %

    • Jeder Kurs, mit allen Funktionen
    • Neue Kurse, sobald sie kommen
    • Dein Tutor, mit allen Funktionen
    All Access holen

All Access enthält außerdem jeden Academind Pro-Kurs.

Academind Pro und Academind Infinite

Zwei getrennte Plattformen, jede mit eigenen Kursen und eigener Anmeldung.

Academind Pro

Unsere ursprüngliche Kursplattform auf pro.academind.com. Dein Pro-Abo und die Kurse, die du dort gekauft hast, bleiben auf Pro.

Bei Academind Pro anmelden

Academind Infinite

Unsere neue KI-first-Plattform. Pro-Mitglieder melden sich mit ihrem Pro-Konto an, und Pro All Access enthält Infinite: Jeder Kurs ist offen.

Bei Academind Infinite anmelden

Hattest du ein Pro-Konto oder einen Kurs auf Pro gekauft?

Nicht jeder Pro-Kurs ist zu Infinite umgezogen, nur diese. Wähle deinen, um ihn auf Infinite zu sehen.