MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Doubt with Typescript type definition

Open tbontb-iaq opened this issue 1 year ago • 2 comments

Hello, I am a newbie. Please forgive me if I've made any mistakes.

I'm using mathjax in my project, and this project uses typescript, so I installed @types/mathjax. But I didn't find the type definition I wanted. For example, type definitions for methods like Mathjax.tex2mml, Mathjax.tex2mmlPromise.

Did I miss something? What should I do?

tbontb-iaq avatar Oct 24 '23 10:10 tbontb-iaq

The @types/mathjax definitions seem to be for the v2 API. That has changed significantly for v3 (e.g., the MathJax.tex2mml and MathJax.tex2mmlPromise() functions are v3 and not part of v2.

Also note the capitalization of MathJax (not Mathjax).

dpvc avatar Nov 01 '23 16:11 dpvc

Sorry for the misspelling. So is there a type definition for v3?

tbontb-iaq avatar Nov 02 '23 06:11 tbontb-iaq