Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
selimbat opened this issue Sep 29, 2023 · 2 comments

Comments

@selimbat
Copy link

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
Copy link
Owner

fast-reflexes commented Sep 29, 2023

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants