Back to all thoughts
Dec 1, 2024•3min read

Typescript enums: not magic, just objects⚡🧠

It was my usual 4am 🕓 psycho-dev 🧠 study session, and the topic at hand was TypeScript ⚡. A deep dive under the hood of TypeScript enums: how the compiler emits JavaScript objects, lookup tables, and when to prefer const objects as const.

LET'S WORKTOGETHER