SPSnehal Pradhaninintro-to-nodejs.hashnode.dev·Jul 7, 2025 · 3 min readHow fastapi installation made me mad?This is my documentation of what problems i faced during my first fastapi installation. This might be helpful to a lot of people starting out in fastapi, because if they arent lucky, they will face this too 😞 Basic context of whats happening For t...00
SPSnehal Pradhaninintro-to-nodejs.hashnode.dev·Mar 30, 2025 · 3 min readType Aliases & InterfacesType Aliases in TypeScript A type alias allows you to create a custom name for a type, making your code more readable and reusable. Basic Type Alias You can define an alias using type. type UserID = string; let user1: UserID = "12345"; // Valid l...00
SPSnehal Pradhaninintro-to-nodejs.hashnode.dev·Mar 30, 2025 · 2 min readUnions & IntersectionsWhen working with data, we often need to combine or filter information based on common elements. In TypeScript, union and intersection help us define flexible and precise types, making our code more robust and scalable. Unions allow a value to be one...00
SPSnehal Pradhaninintro-to-nodejs.hashnode.dev·Mar 30, 2025 · 3 min readTuples & EnumsTuples in TypeScript A tuple is a special type of array that has a fixed length and specific types for each element. → Declaring a Tuple let user: [string, number] = ["Alice", 25]; console.log(user[0]); // Output: Alice console.log(user[1]); // Outpu...00
SPSnehal Pradhaninintro-to-nodejs.hashnode.dev·Mar 30, 2025 · 2 min readInference & ArrayType Inference in TypeScript TypeScript can automatically determine variable types based on their initial values. This is called Type Inference. → Explicit Typing (Manually Specified Type) let age: number = 25; // Type is explicitly set → Implicit ...00