If you work with Typescript of a regular basis, you know that it provides developers with a large feature list that is frequently updated with new stuff. One of the things from that list that you may have been using for years without realizing it are Type Guards...Read more
TypeScript is very flexible, and in addition to the ability to create new types, it also offers the ability to transform existing types. Such transformations are usually done with Utility Types, which are built-in and globally accessible...Read more
In TypeScript 4.1, apart from a bunch of cool additions, there are four new types that help us better handle various string manipulations. The most common manipulations are: converting the string to uppercase or lowercase, capitalizing and...Read more
If you are using TypeScript, you might have noticed an Exclamation Mark (!) operator that does some kind of magic and makes your compiler ignore possible errors. Let's learn what the purpose of this operator is and how it can be a useful addition to...Read more
In TypeScript, there are 2 top types: any and unknown, that are both very similar, but unknown is much less permissive and type-safe counterpart of any...Read more
One of the main tools in the toolbox for producing reusable code is generic types. They allow the code to be used with a variety of types rather than a single one...Read more
One of the most asked interview questions for JavaScript developers is: "What's the difference between type and interface in TypeScript?". Even if you used both of them, the answer might not be obvious...Read more