Pragmatic AI Labs

Working with Data in TypeScript 7

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

Working with Data in TypeScript 7

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

  • Type data from files, servers, errors and the environment as unknown, and narrow it

  • Validate data with Zod and Valibot schemas, and read their errors

  • Build and test a data loader that refuses bad data with a clear message

Compétences que vous acquerrez

  • Catégorie : JSON
  • Catégorie : Data Validation
  • Catégorie : Software Testing
  • Catégorie : Data Pipelines
  • Catégorie : Interoperability
  • Catégorie : Development Testing
  • Catégorie : Integration Testing
  • Catégorie : Test Data
  • Catégorie : File I/O

Outils que vous découvrirez

  • Catégorie : TypeScript
  • Catégorie : Node.JS

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 promise a number while the data holds a string, and the compiler say nothing. You see JSON.parse's any let a typo through to a TypeError, and unknown catch it as TS18046. You narrow a parsed todo by hand, one check at a time. Then you see that an async function hands back a promise, that a forgotten await is TS2322, and that Oxlint's type-aware rule catches a promise nobody waits for. Finally you read a file with Node's fs module, see a missing file fail with ENOENT, and treat it as an empty list.

Inclus

11 vidéos9 lectures1 devoir

You install Zod and write a schema: a description of the data that still exists while the program runs. You infer a type from it, so the type and the check never disagree, and use it in the todo loader. You see Zod refuse a todo with an empty title before the program prints anything, read errors that name the row and the field, and use safeParse to skip a bad row and keep going. Then you write the same schema in Valibot, look at the Standard Schema interface both libraries share, and write one helper that accepts either.

Inclus

10 vidéos6 lectures1 devoir

You fetch JSON with Node's built-in fetch from a server on your own machine, and see that its body is unknown. You see that a 404 is still an answer, check the response status before reading the body, and test it with Node's test runner. You see that any value can be thrown, so a caught error is unknown, and narrow it before using it. Then you read environment variables that may be undefined, give them defaults and checks, and validate the todo loader's settings with Zod.

Inclus

10 vidéos6 lectures1 devoir

You add the code that works on checked data: a counter of open todos and a list of todos with their status, with no checks of their own. You write tests for valid data, for invalid data, and with fixtures kept in files that go through the real loader. Then you read the project's brief, see the finished program count a valid file, refuse an invalid one with one clear message and exit code 1, and treat a missing file as no todos, proven by one check with five steps.

Inclus

10 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