Important and useful types like the configuration options-object used for makeMathField are poorly described (as Object<string, any> atm).
The MathField-class is not included in mathlives module right now, it rather seems to be just available globally. This is probably not a problem with the typings, but actually what's happening. Not yet clear whether this is actually a problem, it's just rather atypical in a modern module-environment.
This utilizes mathlives own typescript-typings (created from JSDocs) and propagates them on (
mathFieldRef
now actually returns aMathField
).This depends on the very latest version of mathlive that includes these typings, which is not yet available as npm package.
There are still some problems with Mathlives typings:
makeMathField
are poorly described (asObject<string, any>
atm).MathField
-class is not included in mathlives module right now, it rather seems to be just available globally. This is probably not a problem with the typings, but actually what's happening. Not yet clear whether this is actually a problem, it's just rather atypical in a modern module-environment.