Space of Matej

Space of Matej

The difference between enum, const enum and declare enum in Typescript

Sep 15, 20214 min read

While working on a Typescript project, I always wondered what the difference between enum, const enum and declare enum is, but I never looked it up. I always thought the difference is in syntactic sugar, and that it eventually becomes the same thing ...

The difference between enum, const enum and declare enum in Typescript
How to use Type guards in Typescript
Perfectionism as a Software Engineer
Getting started with Creative Coding and p5.js