• _hello
  • _about-me
  • _projects
  • _blog
  • _support
_contact-me
find me in:
@faeztgh
cd ../topics

Generics

// 4 articles on Generics by Faez Tgh — practical React, Next.js, TypeScript and web-performance write-ups.

01
typescript

Deep Dive into Const Assertions and Utility Types

Jan 16, 2024· 2 min·427 words

TypeScript's const assertions lock object shapes at compile time, and utility types like typeof and keyof let you derive precise types from real data — no duplication, no drift.

  • TypeScript
  • Type Safety
  • Utility Types
read-postopen
02
typescript

An In-Depth Guide to Key Removal in TypeScript

Dec 26, 2023· 2 min·344 words

A practical walkthrough of makeKeyRemover — a generic TypeScript function that strips one or more keys from an object while preserving full type safety and immutability.

  • TypeScript
  • Utility Types
  • Type Safety
read-postopen
03
typescript

TypeScript: Mastering Overloading and Generics

Nov 21, 2023· 2 min·407 words

Function overloading and generics bring flexibility, reusability, and safety to TypeScript. Learn how each works and when to reach for them.

  • TypeScript
  • Generics
  • Function Overloading
read-postopen
04
typescript

TypeScript Advanced Concepts

Aug 7, 2023· 1 min·216 words

Write more dynamic and robust TypeScript by mastering six advanced concepts: generics, union and intersection types, type guards, nullish coalescing, and discriminated unions.

  • TypeScript
  • Generics
  • Union Types
read-postopen

# other-topics

  • TypeScript20
  • JavaScript11
  • React8
  • AI6
  • Next.js6
  • Performance6
  • SEO3
  • Type Safety3
  • Utility Types3
  • Architecture2
  • LLM2
  • Tooling2
  • Type System2
  • Union Types2
  • Web Standards2
  • Advanced Types1
  • Autocomplete1
  • Backend1
  • Chrome Extension1
  • Code Organization1
  • Conditional Types1
  • CSS1
  • Decorators1
  • Developer Experience1
  • Frontend1
  • Function Overloading1
  • Hooks1
  • Infer1
  • MCP1
  • Metaprogramming1
  • Namespaces1
  • Omit1
  • Pick1
  • RAG1
  • Responsive Design1
  • Structured Data1
  • Template Literal Types1
  • Type Guards1
  • Type Inference1
  • URL Parameters1
  • useEffect1
  • useLayoutEffect1
  • Web Vitals1
  • YouTube1