Aller au contenu principal
Academind
Tous les cours

Cours Academind Pro

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 sections · 255 leçons
  • 17 h et 17 min au total

À propos de ce cours

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.

Ce que vous allez apprendre

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.

Prérequis

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

À qui s’adresse ce cours

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

Programme

Découvrez la structure et le rythme de ce cours avant de commencer.

  1. 1Getting Started10 leçons · 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 leçons · 1 h et 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 leçons · 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 leçons · 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 leçons · 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 leçons · 1 h et 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 leçons · 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 leçons · 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 leçons · 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 leçons · 1 h et 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 leçons · 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 leçons · 1 h et 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 leçons · 2 h et 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 leçons · 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 leçons · 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 leçons · 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 leçons · 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 leçons · 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 leçons · 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 leçons · 1 h et 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 leçon · 1 min
    1. 01Roundup & Next Steps1:15 min

Prêt à commencer ?

Achetez ce cours sur Academind Pro, ou obtenez tous les cours avec All Access sur Academind Infinite.

Black Friday : un an d’All Access pour 249 $US 249 $US · seulement jusqu’au Profitez de l’offre
  • Ce cours sur Academind Pro

    89 $USpaiement unique

    TVA incluse · Satisfait ou remboursé pendant 30 jours

    • Accès à vie à ce cours
    • Toutes les futures mises à jour de ce cours
    • Ressources téléchargeables, code et un certificat
    Acheter TypeScript
  • All Access sur Academind Infinite

    25 $USpar mois

    ou 249 $US 249 $US par anÉconomisez 17 %

    • Tous les cours, avec toutes leurs fonctionnalités
    • Les nouveaux cours dès leur sortie
    • Votre tuteur, avec toutes ses fonctionnalités
    Obtenir All Access

All Access inclut aussi tous les cours Academind Pro.

Academind Pro et Academind Infinite

Deux plateformes distinctes, chacune avec ses propres cours et sa propre connexion.

Academind Pro

Notre plateforme de cours d’origine, sur pro.academind.com. Votre abonnement Pro et les cours que vous y avez achetés restent sur Pro.

Se connecter à Academind Pro

Academind Infinite

Notre nouvelle plateforme pensée pour l’IA. Les membres Pro se connectent avec leur compte Pro, et l’offre Pro All Access inclut Infinite : tous les cours leur sont ouverts.

Se connecter à Academind Infinite

Vous aviez un compte Pro ou avez acheté un cours sur Pro ?

Tous les cours Pro ne sont pas passés sur Infinite, seulement ceux-ci. Choisissez le vôtre pour le voir sur Infinite.