DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Node.js
What's the recommended workaround for using enums in a file meant to run under plain native type-stripping?
A
There is no workaround, enums can never be used
B
Use a string-literal union type instead, which is genuinely erasable
C
Wrap the enum in a try/catch
D
Always use --experimental-transform-types for every project regardless of need
Check Answer