harshitjain.hashnode.dev5 mistakes you shouldn't do in TypeScriptIf you are a frontend developer and not living under a rock since last couple of years, you know that TypeScript has emerged as a de-facto standard when it comes to writing type safe Javascript code. While most folks put deliberate efforts to learn J...Jan 30, 2023·2 min read
harshitjain.hashnode.devWhat are Generics in Typescript?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...Jul 31, 2022·5 min read
harshitjain.hashnode.devTypeScript Best Practices #2 – Use More Precise Type Than ‘string’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...Sep 21, 2021·4 min read
harshitjain.hashnode.devTypescript Best Practices #1 - Always prefer 'Type Declaration' over 'Type Assertion'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...Sep 1, 2021·4 min read