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
OptionList is an object with an index signature that accepts any key and value, resulting TypeScript won't check key of a passed parameter so that it is hard for users to tell what options are available for SVG or CHTML class without seeing the document.
I've already written these interfaces for another project and feel like it should be bundled with MathJax by default. remarkjs/remark-math#48
I'm not sure this is the right place to discuss this issue, it is about the interface of SVG and CHTML class.
MathJax-src/ts/output/svg.ts
Lines 112 to 115 in b526361
MathJax-src/ts/output/chtml.ts
Lines 127 to 130 in b526361
Currently,
SVG
andCHTML
class takes option params which are defined asOptionList
.MathJax-src/ts/util/Options.ts
Line 40 in b526361
OptionList
is an object with an index signature that accepts any key and value, resulting TypeScript won't check key of a passed parameter so that it is hard for users to tell what options are available for SVG or CHTML class without seeing the document.I've already written these interfaces for another project and feel like it should be bundled with MathJax by default.
remarkjs/remark-math#48
Is it ok to send a PR to include these interfaces?
The text was updated successfully, but these errors were encountered: