Le Blog · En accès libreThe Blog · Free to read
TypeScript, sans jargon TypeScript, without the jargon
Des articles courts et gratuits sur les mécanismes de TypeScript — pour défricher avant de plonger dans les numéros. Short, free articles on TypeScript's mechanisms — to clear the ground before diving into the issues.
- 2026-06-19 any vs unknown en TypeScript : lequel choisir ?any vs unknown in TypeScript: which one to pick? any éteint le compilateur. unknown l'oblige à te poser des questions. Deux types pour « je ne sais pas », mais un seul garde tes garanties. Voici la différence.any turns the compiler off. unknown forces it to ask you questions. Two types for "I don't know," but only one keeps your guarantees. Here's the difference.
- 2026-06-19 Le narrowing en TypeScript, expliqué simplementNarrowing in TypeScript, explained simply Comment TypeScript sait, après un if, que ta variable est forcément une string ? C'est le narrowing : la preuve qu'il construit branche par branche. Voici comment ça marche.How does TypeScript know, after an if, that your variable is definitely a string? That's narrowing: the proof it builds branch by branch. Here's how it works.