Skip to Content
Programmation TypeScript
book

Programmation TypeScript

by Boris Cherny
November 2024
Intermediate to advanced
324 pages
8h 6m
French
O'Reilly Media, Inc.
Content preview from Programmation TypeScript

Chapitre 11. Interopérer avec JavaScript

Cet ouvrage a été traduit à l'aide de l'IA. Tes réactions et tes commentaires sont les bienvenus : translation-feedback@oreilly.com

Nous ne vivons pas dans un monde parfait. Ton café peut être trop chaud et te brûler un peu la bouche quand tu le bois, tes parents peuvent t'appeler et te laisser des messages vocaux un peu trop souvent, ce nid-de-poule près de ton allée est toujours là, peu importe le nombre de fois que tu appelles la ville, et ton code n'est peut-être pas complètement couvert par des types statiques.

La plupart d'entre nous sont dans ce bateau : bien qu'une fois de temps en temps, tu auras la marge de manœuvre nécessaire pour démarrer un projet greenfield en TypeScript, la plupart du temps, il commencera comme un petit îlot de sécurité, intégré dans une base de code plus grande et moins sûre. Peut-être que tu as un composant bien isolé sur lequel tu veux essayer TypeScript même si ton entreprise utilise du JavaScript ES6 ordinaire partout ailleurs, ou peut-être que tu en as assez de te faire biper à 6 heures du matin parce que tu as refactoré du code et oublié de mettre à jour un site d'appel (il est maintenant 7 heures du matin, et tu es en train de fusionner TSC dans ta base de code avant que tes collègues ne se réveillent). Quoi qu'il en soit, tu commenceras probablement avec une île de Typescript dans une mer sans type.

Jusqu'à présent, dans ce livre, je t'ai appris à écrire TypeScript de la bonne manière. Ce chapitre ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

TypeScript Kochbuch

TypeScript Kochbuch

Stefan Baumgartner
JavaScript: Best Practice

JavaScript: Best Practice

James Kolce, Moritz Kroger, Ivan Curic, Samier Saeed, Jeff Mott, M. David Green, Craig Buckler

Publisher Resources

ISBN: 9798341618688