© 2023 Hashnode
#types
In this blog, we are going to learn about different utility types that we have in typescript and how they help us on daily basis. Utility types in TypeScript are built-in tools that allow us to create…
Generics in Java are a powerful feature that allows developers to write more type-safe and reusable code. Introduced in Java 5, generics provide a way to parameterize classes, methods, and interfaces with a type or set of types. In this blo…
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 Literal types are a feature of the Typescript compiler that allows the creation of types that have a specific value of a primitive type. Literal types can be of type string, number or boo…
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 provides various utility types that make types transformation very easy. We can transform existing types into several other types. These utility types are globally available, so we don't ne…
( Please excuse the odd syntax. Hashnode doesn't support coloring for OCaml. ) Pure functional programming is neat. It allows for some extremely unique optimisations and speed improvements - but it makes usual programming things like IO har…
TS is basically a language built on JavaScript to make the latter strongly typed.Strongly types mean you adhere to a strict way of writing code, which gives more security or type safety, and reduces errors, although it involves writing more…
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…
Functions in JavaScript JavaScript functions are blocks of code that can be reused throughout a program. They can take in input, called parameters, and perform a specific task, such as performing a ca…