fast-reflexes / better-react-mathjax

MIT License
124 stars 16 forks source link

Typescript error TS1209: Ambient const enums are not allowed when the '--isolatedModules' flag is provided #45

Closed selimbat closed 11 months ago

selimbat commented 11 months ago

When running a type-check, I have the aforementioned error with the DIRECTION enum in FontData.d.ts. The error is resolved by changing the declaration from declare const enum to declare enum My TypeScript version is 4.7.4, with the isolatedModules flag activated.

fast-reflexes commented 11 months ago

Hi there!

Thanks for reporting! Types are exported directly from the mathjax-full package so all type errors should be addressed directly to https://github.com/mathjax/MathJax.

fast-reflexes commented 11 months ago

I'm closing this, feel free to reopen if you think this is wrong! 🎈