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

Developer Experience

// 1 article on Developer Experience by Faez Tgh — practical React, Next.js, TypeScript and web-performance write-ups.

01
typescript

Leveraging Union Types and Union Autocomplete Helper in TypeScript

Dec 6, 2023· 1 min·183 words

Combining string literals with a bare string kills autocomplete. Here's the pattern that preserves it — plus a reusable helper type to apply it anywhere.

  • TypeScript
  • Union Types
  • Autocomplete
read-postopen

# other-topics

  • TypeScript20
  • JavaScript11
  • React8
  • AI6
  • Next.js6
  • Performance6
  • Generics4
  • 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
  • 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