Alpit Kumaralpit.hashnode.dev·Jul 12, 2024Understanding Typescript1) Definition: Typescript is the Superset of Javascript. It's just compiles the compiles it to plain Javascript. It adds static types to javascript for better tooling and error handling. Typescript is a development tool, your project still runs in j...DiscussTypeScript
AARYAN BAJAJaaryan-bajaj-learnings.hashnode.dev·Jun 14, 2024Unleashing the Power of Generics in TypeScript: A Comprehensive GuideIntroduction Imagine a world where you could create functions, interfaces, and classes that work seamlessly with any data type, providing both flexibility and type safety. Welcome to the world of Generics in TypeScript! In this blog, we'll delve i...DiscussGenerics in TypeScript
Alvison Hunteralvisonhunter.hashnode.dev·May 20, 2024The Elegance of Clean Code: A Fundamental Guide with JavaScriptIn the world of JavaScript development, there is a secret recipe for success that not everyone is aware of: writing clean, concise, and precise code. Clean code is like a well-organized kitchen, where every utensil has its place, concise code is the ...Discussclean code
chintanonwebchintanonweb.hashnode.dev·Apr 29, 2024The ABCs of TypeScript: Exploring Enums, Types, and InterfacesEnum vs Type vs Interface in TypeScript: What to Use and When? Introduction In TypeScript, developers often encounter situations where they need to define custom data types. While enums, types, and interfaces are all tools for achieving this, they se...DiscussTypeScript
Eklal Budhathokiblogs.ebudhathoki.com.np·Apr 28, 2024Generic Reusable Component ReactGeneric types are use mainly to create reusable components with type-safety. First, lets create a simple component first. import React from 'react' type TSelectOptions = { label: string, value: string } type TSelectProps = { options: TSelectOptions...DiscussTypeScript
Charles Opute Odilichalu.hashnode.dev·Apr 25, 2024Using Generics in Typescript to Ensure Symmetry in Function Argument ValuesFunctions in JavaScript can take arguments and we can use Typescript to enforce a type on each argument, such that we would get build time errors if the function gets called with arguments of the wrong type. What can be tricky and often elusive with ...Discuss·58 readsfunction signatures
Sadanand gadwalsadanandgadwal.hashnode.dev·Apr 20, 2024Mastering TypeScript: A Comprehensive GuideTypeScript is an open-source programming language developed by Microsoft that builds upon JavaScript by adding optional static typing, interfaces, classes, and other features to help developers write robust and scalable code. It compiles to plain Jav...Discuss·20 likesTypeScript
Ankush Thakurankushthakur.hashnode.dev·Feb 20, 2024Mastering TypeScript: Unveiling Types and TechniquesHey TECHIE curious about TypeScript's ? Let's explore the world of types together, unraveling their importance and how they make your code stronger. There are various types available in Typescript String It represents the string value like "Hello Wo...Discuss·129 readsTypeScript
Aditya Revankaradityarevankar.hashnode.dev·Feb 9, 2024Generics for dummiesLet’s say you have a function that needs to return the first element of an array. Array can be of type either string or integer. Here we have get access to the firstElement which is a type of string. But we don't have access to default string functi...DiscussTypeScript
IDits-id.hashnode.dev·Feb 8, 2024Generics in TypeScript: A Complete Guide (Part 2)In the previous part of this blog, we learned what generics are and how to use them in functions. In this part, we will see how to use generics in types, and how to give default values to generic types. How to use generics in types Generics are not o...Discuss·28 readsTypeScript