Book Your Free Call
Tim Mouskhelichvili • March 11, 2022 • 4 minutes to read
The TypeScript Record<Keys, Type> utility type is used to construct a new type whose properties are Keys and values are Type. The Record type helps you create a new TypeScript type from a union type. In this article [...]
Tim Mouskhelichvili • March 9, 2022 • 2 minutes to read
TypeScript provides a lot of utility types that are going to help you do common type transformations. One of those types is the TypeScript Pick type. The Pick type is used when you want to construct a type by [...]
Tim Mouskhelichvili • March 7, 2022 • 5 minutes to read
In web development, you often need a data structure to hold a mapping of key/value pairs. This data structure has many names: a map, a dictionary, an associative array... Its functionality, however, always remains the same. The data structure [...]
Tim Mouskhelichvili • March 7, 2022 • 3 minutes to read
The for loop is one of the most common operations in programming. The for loop is used to execute a specific code block a specified number of times. Generally, one of the most common use-cases of this loop is [...]
Tim Mouskhelichvili • March 7, 2022 • 2 minutes to read
Summary TypeScript just like JavaScript has a special typeof operator. In TypeScript, the typeof operator is used to refer to the type of a variable in a type context. const v = 'This is a string'; const data: typeof [...]
Tim Mouskhelichvili • March 5, 2022 • 2 minutes to read
TypeScript is a programming language developed in 2012 by Microsoft. Since its inception, it has exponentially grown in popularity. TypeScript offers a lot of advantages compared to JavaScript, most importantly typings which help prevent a lot of bugs, help [...]