Hacker News new | ask | show | jobs
by AbuAssar 1608 days ago
You can use const enum and the ts compiler will just replace any enum reference with its value inplace.