TypeScript blog posts
Modern Naming Conventions in TypeScript: Avoiding the I Prefix and Interface Suffix
Learn how to write cleaner, more readable TypeScript code by adopting modern naming conventions. This post explains why outdated prefixes like I and suffixes like Interface are unnecessary, and how to use consistent type aliases and descriptive names to improve your codebase.
Why You Should Use Maps in JavaScript and TypeScript Instead of Arrays
Learn why Maps can outperform arrays in JavaScript and TypeScript for key-value storage, flexible key types, and efficient lookups. Discover best practices and examples for using Maps in your TypeScript code.
Achieving Immutability in JavaScript and TypeScript
Let's explore how to achieve immutability in JavaScript and TypeScripts, which is essential for creating stable and predicable code.
TypeScript 5.0 - Enums are now union enums
TypeScript 5.0 has introduced union enums, which means that each enum member has its own type, and the enum itself is turned into a union of each member type. This update is a significant improvement that makes working with enums in TypeScript more powerful, easier to use and worth now worth using.
How to create a custom form control in Angular
Learn how to build a fully functional custom form control, compatible with template-driven and reactive forms, as well as with all built-in and custom form validators.
What are TypeScript enums and why to avoid them?
Enum, short for Enumerated Type, is a language feature of many statically typed languages such as C#, Java and amongst many others. Software engineers use this feature to define sets of named constants that can be used within their code. But here is why to avoid them in TypeScript!
How to generate a range of numbers using ES6
Here you can see a handful of examples showing how to generate a range of numbers using ES6. Examples include ability to specify a start and end value as well as the step value to use.