DenoDDeno
Powered by
Doctor πŸ€–D
Denoβ€’4y agoβ€’
4 replies
Doctor πŸ€–

TypeScript enums

So enums are objects with all keys being values and values being keys. Most of the time when using enums though, I place a specific enum, so knowing exactly what the value will be there. Is there a way to instead of referring to the object to get to the value, it just hard codes the value when bundling from ts to js?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to import enums from npm:typescript package?
JacobZwangJJacobZwang / help
2y ago
Deno + TypeScript
TimTTim / help
2y ago
Typescript monorepo LSP performance
KasperKKasper / help
15mo ago