Utkarsh Dhimanutkarshdhiman.hashnode.dev·Aug 29, 2024How to Set Up Absolute Imports in Node.js and TypeScript with NodemonTLDR Switching from relative to absolute imports in TypeScript can greatly enhance code readability and manageability. By updating the tsconfig.json settings to use a fixed path from your project's root, you can simplify import statements. Additiona...37 readsExpress
Sheraz Manzoorsherazmanzoor.hashnode.dev·Aug 8, 2024Type ✔ Vs Interface ❌: Why you should chose type over interface in typescript.I have come to a solution that you should always use types over interfaces. Let's breakdown why!! Interfaces can only specify objects, but type alias can specify objects and everything else. Let's say we have a single Address field and with type you...type alias
Shainil P Scodeshaine.hashnode.dev·May 9, 2024Is TypeScript Hard ??Before starting note that I'm a JavaScript(Node js) Developer i have somewhat experience in TypeScript. Ok!! When you start your journey of learning Web development you get to know that either you have to be good at Frontend or Backend (Full stack if...Learning TypeScript
Pranav Bawgikarpranavbawg.hashnode.dev·Apr 20, 2024Well, I kinda learned what TypeScript is...Preface This article was like that missing sock you find a year later behind the dryer — unexpected but still useful! 'Understanding TypeScript' by Gavin Beirman and his co-authors had finally surfaced and helped me get a good grasp of the language's...1 like·32 readsTypeScript
Sarthak Batrablog.srthk.com·Apr 18, 2024Modern tsconfig template [2024]In this blog, I am keeping a draft example of the modern tsconfig file that works for me in the projects that I am making. { "compilerOptions": { "target": "ESNext", "experimentalDecorators": false, "module": "commonjs", "rootDir": ...rapidcoding
Osaf Ali Sayedosafalisayed.com·Feb 1, 2024Day 1 - Type Basics and Better workflow with tsconfigWhen working with TypeScript we would want to define the type of each variable. This can be done explicitly or implicitly. To explicitly define a variable type we can write the following code // We can clearly see we define type after the colon let n...1 like·36 readsLearn with me TypeScript Crash Course SeriesTypeScript
Max Martínez Cartagenamaxmartinez.dev·Jan 14, 2024How to configure TSConfig Path Aliases?TSConfig path aliases in TypeScript allows us to define custom aliases for module imports in our project. This means we can create shorter and more meaningful names for our module imports, rather than using long and complex relative paths. To set up ...2 likes·2.6K readsTypeScript
Gaurav J Somanigaurav750.hashnode.dev·Oct 11, 2023Typescript's Heartbeat: A guide to TSC CompilerTypescript, as we all know, enhances the development process with its static typing and advanced features. But what happens behind the scenes when you write typescript code? How does it magically transform into browser-friendly Javascript? So, in thi...2 likes·81 readsTypeScript
Emmanuel Daviddazito.hashnode.dev·Jun 23, 2023Configuring tsconfig.json for your next ts projectWant to start your next project in typescript you can easily use this simple configuration file to kick-start it without wasting time { "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, "module": "ESNext", "m...TypeScript
Chilo Maximillianfrontendalchemist.com·May 30, 2023Simplify Your Codebase with Absolute Imports in React: A Guide for JavaScript/TypeScript ProgrammersIntroduction As a JavaScript/TypeScript programmer, working on a large codebase means importing a lot of things from different places. Most times your import section looks like this: import CartModal from "../../../components/cart/CartModal"; import ...114 readsJavaScript