Code Mala Tang
Code Mala Tang
Dec 31, 2025 · Fundamentals

8 Underrated TypeScript Features That Can Save Your Code

This article showcases eight often‑overlooked TypeScript capabilities—discriminated unions, as const,{ } tuples, template literal types, keyof + typeof, strict mode, noUncheckedIndexedAccess, and type augmentation—each with concrete examples and practical guidance on how they improve type safety and reduce boilerplate.

TypeScriptas constdiscriminated unions
0 likes · 7 min read
8 Underrated TypeScript Features That Can Save Your Code
Code Mala Tang
Code Mala Tang
Oct 6, 2025 · Frontend Development

How Rust’s Type Safety Can Transform Your TypeScript Code

A seasoned frontend developer shares why learning Rust, with its strict match statements and powerful type inference, inspired a deeper understanding of TypeScript’s type system, offering practical tips on clarity, concrete types, discriminated unions, and advanced utility types to write safer, more maintainable code.

GenericsRustTypeScript
0 likes · 21 min read
How Rust’s Type Safety Can Transform Your TypeScript Code
Code Mala Tang
Code Mala Tang
Jul 29, 2024 · Frontend Development

Boost Your TypeScript Skills with 6 Powerful Type‑Checking Tricks

This article presents six practical TypeScript techniques—including never‑type exhaustive checks, discriminated unions, union‑type hints, the satisfies keyword, template‑literal permutations, and type extraction—to enhance type safety and improve developer productivity.

TypeScriptdiscriminated unionsnever type
0 likes · 6 min read
Boost Your TypeScript Skills with 6 Powerful Type‑Checking Tricks