---
title: "Harshit Jain (@harshitjain) | Hashnode"
description: "Frontend @ Intuit | Ex MakeMyTrip, SAP | Javascript| Typescript | React | React Native | UI. Read the latest articles by Harshit Jain on Hashnode."
url: "https://hashnode.com/@harshitjain"
---

@harshitjain

# Harshit Jain

@harshitjain · Noida, India · Joined May 2016

Frontend @ Intuit | Ex MakeMyTrip, SAP | Javascript| Typescript | React | React Native | UI

### [What are Generics in Typescript?](https://harshitjain.hashnode.dev/what-are-generics-in-typescript?utm_source=hashnode&utm_medium=feed)

Introduction Over the course of the last few years, Typescript has emerged as the de-facto standard for writing type-safe Javascript code. This added type-safety gives developers confidence in their code and helps them catch errors even before the co...

5 min read · [harshitjain.hashnode.dev](https://harshitjain.hashnode.dev/what-are-generics-in-typescript?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/what-are-generics-in-typescript/62e63ec1430bd1d04a843491) [Jul 31, 2022](https://hashnode.com/posts/what-are-generics-in-typescript/62e63ec1430bd1d04a843491)

### [TypeScript Best Practices #2 – Use More Precise Type Than ‘string’](https://harshitjain.hashnode.dev/typescript-best-practices-2-use-more-precise-type-than-string-1?utm_source=hashnode&utm_medium=feed)

Introduction The best thing about typescript is that you can always start by using just the basic features of the language. You don't have to use every advanced feature of it right from the beginning. You can incrementally learn and implement stricte...

4 min read · [harshitjain.hashnode.dev](https://harshitjain.hashnode.dev/typescript-best-practices-2-use-more-precise-type-than-string-1?utm_source=hashnode&utm_medium=feed)

[5](https://hashnode.com/posts/typescript-best-practices-2-use-more-precise-type-than-string-1/6149f3e920bcc6765ac0513c) [Sep 21, 2021](https://hashnode.com/posts/typescript-best-practices-2-use-more-precise-type-than-string-1/6149f3e920bcc6765ac0513c)

### [Typescript Best Practices #1 - Always prefer 'Type Declaration' over 'Type Assertion'](https://harshitjain.hashnode.dev/typescript-best-practices-1-always-prefer-type-declaration-over-type-assertion?utm_source=hashnode&utm_medium=feed)

In TypeScript, there are two ways of assigning a type to a variable. Type Declaration Type Assertion If you have ever written typescript code, you most probably would have used both of them at some point in time. So let's dive deep into what type d...

4 min read · [harshitjain.hashnode.dev](https://harshitjain.hashnode.dev/typescript-best-practices-1-always-prefer-type-declaration-over-type-assertion?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/typescript-best-practices-1-always-prefer-type-declaration-over-type-assertion/612f7c04c21ac123ca3775b7) [Sep 1, 2021](https://hashnode.com/posts/typescript-best-practices-1-always-prefer-type-declaration-over-type-assertion/612f7c04c21ac123ca3775b7)
