Skip to content

Topic · 104 articles

TypeScript

Using the type system to make bad states unrepresentable.

TypeScript runs through almost everything I write, on the server and in the browser. These articles focus on using the type system as a design tool — modeling data so invalid states cannot compile — rather than as decoration bolted onto JavaScript.

The material spans backend and frontend, so it links naturally to the Node.js, NestJS, and React hubs.

Subscribe to TypeScript via RSS

All TypeScript articles

Two Pointers & Sliding Window, Explained Simply — Aman Kumar Singh
Arrays & Hashing: The Interview Patterns You Must Know — Aman Kumar Singh
A NestJS Production Checklist — Aman Kumar Singh
Deploying NestJS to Production — Aman Kumar Singh
Security Best Practices — Aman Kumar Singh
Unit Testing Services — Aman Kumar Singh
gRPC Services in NestJS — Aman Kumar Singh
Microservices with NestJS — Aman Kumar Singh
Event-Driven Architecture — Aman Kumar Singh
CQRS in NestJS — Aman Kumar Singh
Pagination and Filtering — Aman Kumar Singh
API Versioning — Aman Kumar Singh
API Documentation with Swagger — Aman Kumar Singh
Logging with a Custom Logger — Aman Kumar Singh
Rate Limiting and Throttling — Aman Kumar Singh
Sending Emails from NestJS — Aman Kumar Singh
Server-Sent Events — Aman Kumar Singh
WebSockets and Gateways — Aman Kumar Singh
Scheduling and Cron Tasks — Aman Kumar Singh
Background Jobs with BullMQ — Aman Kumar Singh
Connecting PostgreSQL with TypeORM — Aman Kumar Singh
Role and Permission Authorization — Aman Kumar Singh
Authentication with Passport and JWT — Aman Kumar Singh
Configuration and Environment — Aman Kumar Singh
Show all 104 articles
Middleware in NestJS — Aman Kumar Singh
Exception Filters and Error Handling — Aman Kumar Singh
Custom Pipes and Transformation — Aman Kumar Singh
Interceptors Explained — Aman Kumar Singh
Guards and Authorization — Aman Kumar Singh
DTOs and Validation Pipes — Aman Kumar Singh
Controllers and Routing — Aman Kumar Singh
Providers and Custom Providers — Aman Kumar Singh
Modules and Dependency Injection — Aman Kumar Singh
NestJS Architecture Overview — Aman Kumar Singh
A React and Next.js Production Checklist — Aman Kumar Singh
Deploying a Next.js App — Aman Kumar Singh
Error Handling and Loading States — Aman Kumar Singh
Core Web Vitals for React Apps — Aman Kumar Singh
Image and Asset Optimization — Aman Kumar Singh
Internationalization (i18n) in Next.js — Aman Kumar Singh
Dark Mode Done Properly — Aman Kumar Singh
Building a Design System — Aman Kumar Singh
An Enterprise Folder Structure for Next.js — Aman Kumar Singh
End-to-End Testing with Playwright — Aman Kumar Singh
Testing React Components — Aman Kumar Singh
Building Tables and Data Grids — Aman Kumar Singh
Charts and Data Visualization in React — Aman Kumar Singh
Animations with Framer Motion — Aman Kumar Singh
Keyboard Navigation and Focus Management — Aman Kumar Singh
Accessibility in React Apps — Aman Kumar Singh
Zustand for Client State — Aman Kumar Singh
Choosing a State Management Approach — Aman Kumar Singh
Form Validation with Zod — Aman Kumar Singh
Building Forms in React — Aman Kumar Singh
Mutations and Optimistic Updates — Aman Kumar Singh
Data Fetching with React Query — Aman Kumar Singh
Protecting Routes with Middleware — Aman Kumar Singh
Authentication in Next.js — Aman Kumar Singh
Building a UI with shadcn/ui — Aman Kumar Singh
Rendering Strategies: SSR, SSG, and ISR — Aman Kumar Singh
SEO with the Next.js Metadata API — Aman Kumar Singh
Server Actions for Mutations — Aman Kumar Singh
Route Handlers and APIs in Next.js — Aman Kumar Singh
Caching and Revalidation in Next.js — Aman Kumar Singh
Data Fetching in the App Router — Aman Kumar Singh
Client Components and When to Use Them — Aman Kumar Singh
Server Components in Practice — Aman Kumar Singh
The Next.js App Router Explained — Aman Kumar Singh
Error Boundaries and Suspense — Aman Kumar Singh
Compound Components and Slots — Aman Kumar Singh
React Component Patterns — Aman Kumar Singh
Code Splitting and Lazy Loading — Aman Kumar Singh
Avoiding Unnecessary Re-Renders — Aman Kumar Singh
React Performance Optimization — Aman Kumar Singh
Using React Context the Right Way — Aman Kumar Singh
Custom Hooks Worth Writing — Aman Kumar Singh
useRef and Working with the DOM — Aman Kumar Singh
useMemo and useCallback, When They Help — Aman Kumar Singh
useEffect Without the Footguns — Aman Kumar Singh
useState and useReducer Patterns — Aman Kumar Singh
Understanding React Hooks in Depth — Aman Kumar Singh
React Fundamentals for Professionals — Aman Kumar Singh
Performance Tuning Before Launch — Aman Kumar Singh
Disaster Recovery and Backups — Aman Kumar Singh
Deploying a Full Stack SaaS — Aman Kumar Singh
Structured Logging for Node.js — Aman Kumar Singh
Monitoring a SaaS in Production — Aman Kumar Singh
Accepting Payments with Stripe — Aman Kumar Singh
Handling File Uploads Securely — Aman Kumar Singh
Adding Full-Text Search — Aman Kumar Singh
Securing Your SaaS API — Aman Kumar Singh
Session Management and Token Storage — Aman Kumar Singh
Multi-Factor Authentication (MFA) — Aman Kumar Singh
Adding OAuth and Social Login — Aman Kumar Singh
Refresh Tokens Done Right — Aman Kumar Singh
JWT Authentication in NestJS — Aman Kumar Singh
A Folder Structure That Scales for Full Stack SaaS — Aman Kumar Singh
Managing Environment Variables and Secrets — Aman Kumar Singh
Setting Up Docker for Local Development — Aman Kumar Singh
Choosing Prisma or TypeORM for Your NestJS API — Aman Kumar Singh
Setting Up NestJS the Right Way — Aman Kumar Singh
Setting Up Your Next.js App the Right Way — Aman Kumar Singh
Setting Up a Monorepo with Turborepo — Aman Kumar Singh
Choosing the Right Tech Stack for Your SaaS (Without Overthinking It) — Aman Kumar Singh

Frequently asked questions

Do I need to know JavaScript before reading these TypeScript articles?

Yes. TypeScript is a superset of JavaScript, so the articles assume you can already read and write JavaScript and focus on what the type system adds on top — modeling data, catching bugs at compile time, and safer refactors.

Are these TypeScript articles about the frontend or the backend?

Both. TypeScript runs across the stack here — typing Node.js and NestJS services on the server and React components on the client — so the patterns apply wherever you write it.

Related topics