by homebrewer · 1y ago · 0 comments
But const enum seems to have several pitfalls. https://www.typescriptlang.org/docs/handbook/enums.html
I think it's because a lot of tooling (excepting TSC) doesn't support cross-file const enums. But I agree - it's one of the reasons I started using TypeScript way back in 2013. I wouldn't be able to write comprehensible performance sensitive code without it.