Susan Potter
###

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.


2023-06
Software

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, …

2023-06
Software

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 …

2023-05
Software

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 …

2020-10
Software

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.

2020-09
Software

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.

2020-08
Software

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 …