Pragmatic AI Labs

TypeScript 7 Type System

Développez des compétences très recherchées grâce à un abonnement d'un an à Coursera Plus, désormais à 239 $. Profitez-en dès maintenant.

Ce cours n'est pas disponible en Français (France)

Nous sommes actuellement en train de le traduire dans plus de langues.
Pragmatic AI Labs

TypeScript 7 Type System

Alfredo Deza

Instructeur : Alfredo Deza

Inclus avec Coursera PlusEn savoir plus

Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Débutant

Expérience recommandée

2 semaines à compléter
à 10 heures par semaine
Planning flexible
Apprenez à votre propre rythme
Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Débutant

Expérience recommandée

2 semaines à compléter
à 10 heures par semaine
Planning flexible
Apprenez à votre propre rythme

Ce que vous apprendrez

  • Annotate values, arrays, tuples and literal unions, and know when inference is enough

  • Model objects with type aliases and interfaces, and narrow unions with runtime checks

  • Handle null, undefined, any, unknown and never safely, and model a typed program

Compétences que vous acquerrez

  • Catégorie : Data Structures
  • Catégorie : Debugging

Outils que vous découvrirez

  • Catégorie : Javascript
  • Catégorie : TypeScript

Détails à connaître

Certificat partageable

Ajouter à votre profil LinkedIn

Récemment mis à jour !

novembre 2026

Évaluations

5 devoirs

Enseigné en Anglais

Découvrez comment les employés des entreprises prestigieuses maîtrisent des compétences recherchées

 logos de Petrobras, TATA, Danone, Capgemini, P&G et L'Oreal

Élaborez votre expertise du sujet

Ce cours fait partie de la Spécialisation "TypeScript 7 for Beginners"
Lorsque vous vous inscrivez à ce cours, vous êtes également inscrit(e) à cette Spécialisation.
  • Apprenez de nouveaux concepts auprès d'experts du secteur
  • Acquérez une compréhension de base d'un sujet ou d'un outil
  • Développez des compétences professionnelles avec des projets pratiques
  • Obtenez un certificat professionnel partageable

Il y a 4 modules dans ce cours

You see a type as a description of a value. You annotate strings, numbers and booleans, let the compiler infer the type where it can, and write it yourself for a function's parameters. You type arrays so a wrong item is caught, fix a tuple's length, and make an array read-only. Then you narrow a value to exact choices with literal types and unions, catch a value that isn't allowed, and keep literals with a constant assertion.

Inclus

12 vidéos9 lectures1 devoir

You describe the shape of objects. A type alias lists each property and its type, and the compiler reports a missing property, a property that doesn't exist, and an extra property that is really a typo. You compare interfaces with type aliases, extend an interface and combine types with an intersection. Then you mark properties optional or read-only, and read values that might be missing with optional chaining and nullish coalescing.

Inclus

10 vidéos6 lectures1 devoir

You let a value be one of several types and learn how the compiler follows your checks. A union of string and number accepts both, but a string method fails on it until you narrow it. You narrow with typeof, with in and instanceof, and with truthiness and equality checks. Then you give each shape a shared tag field, switch on it, and use the never type so the compiler reports a case you forgot to handle.

Inclus

10 vidéos6 lectures1 devoir

You handle values that might not be there. Strict null checks report a lookup that can come back undefined, array indexing is unchecked by default, and checked index access closes that gap. You compare the any type, which switches checking off, with unknown, which must be narrowed before use, and use never for impossible states. Finally you model a typed shopping cart with unions and objects, and prove it with its contract check.

Inclus

11 vidéos6 lectures2 devoirs

Obtenez un certificat professionnel

Ajoutez ce titre à votre profil LinkedIn, à votre curriculum vitae ou à votre CV. Partagez-le sur les médias sociaux et dans votre évaluation des performances.

Instructeur

Alfredo Deza
Pragmatic AI Labs
44 Cours6 236 apprenants

Offert par

Pragmatic AI Labs

En savoir plus sur Software Development

Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?

Felipe M.

Étudiant(e) depuis 2018
’Pouvoir suivre des cours à mon rythme à été une expérience extraordinaire. Je peux apprendre chaque fois que mon emploi du temps me le permet et en fonction de mon humeur.’

Jennifer J.

Étudiant(e) depuis 2020
’J'ai directement appliqué les concepts et les compétences que j'ai appris de mes cours à un nouveau projet passionnant au travail.’

Larry W.

Étudiant(e) depuis 2021
’Lorsque j'ai besoin de cours sur des sujets que mon université ne propose pas, Coursera est l'un des meilleurs endroits où se rendre.’

Chaitanya A.

’Apprendre, ce n'est pas seulement s'améliorer dans son travail : c'est bien plus que cela. Coursera me permet d'apprendre sans limites.’

Qu’est-ce qui vous amène sur Coursera aujourd’hui ?

Foire Aux Questions