You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a type-check, I have the aforementioned type 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.
Steps to Reproduce:
Having a typescript project with the isolatedModules, my version of TS is 4.7.4
Thanks for the report. I'll look into the effects of making that change, and whether to dump the enum entirely in favor of a constant object instead (would make it more consistent with other constants in MathJax).
Issue Summary
Hello,
I initially opened an issue on the fast-reflexes/better-react-mathjax and I was redirected here.
Here's my problem:
When running a type-check, I have the aforementioned type error with the
DIRECTION
enum inFontData.d.ts
.The error is resolved by changing the declaration from
declare const enum
todeclare enum
My TypeScript version is 4.7.4, with the
isolatedModules
flag activated.Steps to Reproduce:
isolatedModules
, my version of TS is 4.7.4Here's an explanation from the typescript documentation about why ambient const enums are not compatible with the
isolatedModules
flagTechnical details:
The text was updated successfully, but these errors were encountered: