TypeScript
Embrace type-driven development as TypeScript guides you through the intricate dance of static types and functional programming concepts with a JavaScript foundation. Witness how the compiler becomes your ally, catching errors at compile-time and guiding you towards cleaner, safer, and more robust code.
Expressive type features of TypeScript's can elevate your code to new heights of type safety. With conditional types, we can intelligently infer and narrow down types based on complex conditions. Mapped types are the sculptors of your type system. They allow you to unleash your creativity by transforming and shaping types at will. And there are a lot of other expressive type curiosities in TypeScript as well. Below are some articles I have written about them.
TypeScript's Mapped Types
In this in-depth exploration we discover the power of mapped types in TypeScript through numerous examples. At the end working through the article you will be able to transform properties with ease, …
Cross-runtime TypeScript Library Development: A Deno-Node Workflow
Are you a TypeScript developer who loves Deno’s safe and sandboxed environment and its out-of-the-box TypeScript, LSP, linting, formatting, stdlib testing and benchmarking support? Join me as I …
Using Conditional Types in TypeScript
Dive into TypeScript's conditional types and discover how they empower developers to create flexible type mappings and enhance type safety. This article explores the mechanics of conditional …
TypeScript's keyof operator and possible uses
Discover the incredible potential of the keyof operator in TypeScript and revolutionize your code for a better development experience.
JavaScript objects to TypeScript enumerations, const enums, ambient enums
Learn how to leverage TypeScript's enums, const enums, ambient enums and how they impact generated JavaScript code. Unveil the benefits and drawbacks of using const enums.
Algebraic Data Types in TypeScript
Note: the code for the TypeScript (to help you follow along) is available here: Encoding Algebraic Data Types in TypeScript code Background Recently I've been reviewing TypeScript code at work. A …