© 2023 Hashnode
#typescript-generics
Have you ever heard of Generic Types in TypeScript? If you're familiar with TypeScript, you might have encountered this term before. Generic Types are a powerful feature in TypeScript that allows you …
Introduction The last episode TypeScript Thursday - S01E01 introduced generic types, how they work, and how we can use type inference for function calls. All the examples shown there took one or sever…
The keyof operator is used to extract the keys of an object type and use them as a type. The keyof takes an object as input and returns a union type of its keys. Let's understand it with an example. i…
Typescript offers a few useful features which enhance developer productivity working with types. Utility Types are one of these features, they are types that are available globally meaning they are in…
Introduction: A good coding practice is to write reusable, flexible and scaleable code. In TypeScript, a generic is a way to define a type or function that can work with multiple types, rather than be…
Introduction Generics are one of the most useful features of TypeScript, allowing you to build powerful abstractions that maintain type safety throughout your program. Even if you've never built a gen…
For creating adaptable and reusable code in a test automation suite, TypeScript generics is a strong and practical tool. Without having to make distinct versions of the component for each type, they e…
Type Annotations TypeScript contains various annotations similar to data types in any static language in the form of strings, numbers, boolean, arrays, records, etc. You can assign a type annotation t…
This article series will introduce us to TypeScript and concepts such as: Why should you learn TypeScript? What exactly is TypeScript? What are the benefits of TypeScript? How to configure your pr…
Introduction/What is TypeScript TypeScript is a programming language that is built on top of JavaScript. It is commonly refer to as a syntactical superset of JavaScript. TypeScript lets you assign op…