Gabriel Vergnaud @gabrielvergnaud.com · 28/03/2025A new version of TS-Pattern is out 🚨 You can now customize the fallback behavior of `.exhaustive()` if the runtime value you get is unexpected. upgrade 👉 npm i ts-pattern@5.7.0 382
Gabriel Vergnaud @gabrielvergnaud.com · 23/02/2025Here is another reason I like Type Catalogs. They can easily be transformed with Mapped Types! Full code snippet in thread 🧵👇 1182
Gabriel Vergnaud @gabrielvergnaud.com · 22/02/2025Pro tip: Don't write your #TypeScript union types by hand, use a Type Catalog instead! Why are Type Catalogs better? Find out in the thread 🧵 👇 2274
Gabriel Vergnaud @gabrielvergnaud.com · 15/12/2024A new TS-Pattern release is out! 👉 Prevent passing impossible patterns to `isMatching` when used with 2 parameters. 👉 `P.infer` behaves better when used in an argument position. just run `npm i ts-pattern@v5.6.0` in your project 😊 Release note: github.com/gvergnaud/ts... 0120
Gabriel Vergnaud @gabrielvergnaud.com · 26/11/2024Type-Level TypeScript is on sale for Black Friday! 🚨 You can get it for 25% off! It's only 74$ to get lifetime access to all course materials. 👉 type-level-typescript.com Enroll to learn how to craft and transform #TypeScript *types* with the same ease you handle JavaScript values every day! 0110
Gabriel Vergnaud @gabrielvergnaud.com · 14/11/2024Template Literal Types are awesome. If you concat `number` and a union of time units, you have a human readable AND type-safe way to provide time values! 👇 0133
Gabriel Vergnaud @gabrielvergnaud.com · 05/11/2024Hey friends 👋 Trying out @bsky.app, looks great so far! I'll post TypeScript and programming related things. to get started, here is an article I wrote a couple of weeks ago explaining how to get optional keys from object types 🤗 type-level-typescript.com/articles/how...type-level-typescript.comHow to get optional keys from object types in TypeScript? — Type-Level TypeScriptLet's build a reusable type helper to get all optional keys from an object type in TypeScript. 1171