Hi MathJax folks,
I’m trying to use MathJax v4 in a Node.js+TypeScript project and unfortunately I haven’t succeeded so far.
The ‘mathjax’ and ‘@mathjax/src’ packages don’t seem to include types (no ‘types‘ field in ‘package.json’).
The ‘@types/mathjax’ package is for an older version of MathJax.
I looked at the examples in the documentation, but they don’t use TypeScript.
I suppose that it should be possible to do what I’m trying to do, given that MathJax is itself written in TypeScript, but perhaps there’s a reason why the types weren’t published as part of the packages?
For the time being I’m working around this by importing MathJax without types:
// @ts-expect-error
import MathJax from "mathjax";
Thanks in advance for any help.